mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 05:35:52 +03:00
Ports: Support Serenity install root in PHP's libtool
PHP's libtool does not have sysroot support; this is the minimum change to get PHP to build.
This commit is contained in:
parent
684c038af0
commit
e70e4c132b
Notes:
sideshowbarker
2024-07-17 05:15:21 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/e70e4c132b Pull-request: https://github.com/SerenityOS/serenity/pull/15740
@ -10,7 +10,7 @@ not try to run phar locally.
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index b54abe3..d9a8d0b 100644
|
||||
index ee2d248105f6af61540dfde3eb9e7297c515f0ea..6190cfb73f01cc68d439cb99fdfc9f18341a4cd6 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1567,8 +1567,8 @@ CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
|
||||
|
@ -11,7 +11,7 @@ and tries to redefine it with its own implementation in
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index d9a8d0b..687c2d8 100644
|
||||
index 6190cfb73f01cc68d439cb99fdfc9f18341a4cd6..b5b8bcc21dd2330adbe81bbc5ad0b6ec256b1ce9 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -365,8 +365,7 @@ if test "$ac_cv_func_dlopen" = "yes"; then
|
||||
|
@ -0,0 +1,33 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jelle Raaijmakers <jelle@gmta.nl>
|
||||
Date: Fri, 21 Oct 2022 14:16:37 +0200
|
||||
Subject: [PATCH] Build: Patch Serenity root directory into libtool
|
||||
|
||||
PHP's libtool does not have sysroot support; this is the minimum change
|
||||
to get PHP to build.
|
||||
---
|
||||
build/ltmain.sh | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/build/ltmain.sh b/build/ltmain.sh
|
||||
index 2f1c8c9dc80f095832c58aeb30ca65fc27e8a64b..cce4f76267a211775ec97eb2b006df536cd4cc7b 100755
|
||||
--- a/build/ltmain.sh
|
||||
+++ b/build/ltmain.sh
|
||||
@@ -2353,6 +2353,9 @@ EOF
|
||||
continue
|
||||
;;
|
||||
esac # case $deplib
|
||||
+ if [ "${lib::1}" == '=' ]; then
|
||||
+ lib="${SERENITY_INSTALL_ROOT}${lib:1}"
|
||||
+ fi
|
||||
if test "$found" = yes || test -f "$lib"; then :
|
||||
else
|
||||
$echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
|
||||
@@ -2469,6 +2472,7 @@ EOF
|
||||
laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
|
||||
|
||||
# Find the relevant object directory and library name.
|
||||
+ libdir="${SERENITY_INSTALL_ROOT}${libdir}"
|
||||
if test "X$installed" = Xyes; then
|
||||
if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
|
||||
$echo "$modename: warning: library \`$lib' was moved." 1>&2
|
@ -15,3 +15,10 @@ For a reason unknown to me, the build system fails to find `inet_aton`
|
||||
and tries to redefine it with its own implementation in
|
||||
`flock_compat.c`.
|
||||
|
||||
## `0003-Build-Patch-Serenity-root-directory-into-libtool.patch`
|
||||
|
||||
Build: Patch Serenity root directory into libtool
|
||||
|
||||
PHP's libtool does not have sysroot support; this is the minimum change
|
||||
to get PHP to build.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user