summaryrefslogtreecommitdiff
path: root/build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build.mk')
-rw-r--r--build.mk25
1 files changed, 15 insertions, 10 deletions
diff --git a/build.mk b/build.mk
index 69c52cee2c..8341a47a87 100644
--- a/build.mk
+++ b/build.mk
@@ -11,7 +11,9 @@
#
# $Id$
-LT_TARGETS = ltconfig ltmain.sh config.guess config.sub
+
+LT_TARGETS = ltmain.sh ltconfig
+LT_PATCHES = patch-aa patch-ab
SUBDIRS = libzend TSRM
@@ -20,7 +22,7 @@ makefile_in_files = $(makefile_am_files:.am=.in)
makefile_files = $(makefile_am_files:e.am=e)
config_h_in = php_config.h.in
-
+
config_h_files = \
$(shell echo ext/*/config.h.stub sapi/*/config.h.stub)
@@ -29,7 +31,7 @@ config_m4_files = \
acconfig_h_SOURCES = acconfig.h.in $(config_h_files)
-targets = $(makefile_in_files) configure $(config_h_in)
+targets = $(makefile_in_files) $(LT_TARGETS) configure $(config_h_in)
all: $(targets)
@for i in $(SUBDIRS); do \
@@ -61,17 +63,20 @@ acconfig.h: $(acconfig_h_SOURCES)
@echo rebuilding $@
@cat $(acconfig_h_SOURCES) > $@
+$(LT_TARGETS): $(LT_PATCHES)
+ rm -f $(LT_TARGETS)
+ libtoolize --automake -c -f
+ patch ltconfig < patch-aa
+ patch ltmain.sh < patch-ab
+ @grep compile_rpath ltconfig >/dev/null 2>&1 || (\
+ echo "patching libtool components failed."; \
+ exit 1)
+
+
$(makefile_in_files): $(makefile_am_files) aclocal.m4
@echo rebuilding Makefile.in\'s
- @for i in $(LT_TARGETS); do \
- if test -f "$$i"; then \
- mv $$i $$i.bak; \
- cp $$i.bak $$i; \
- fi; \
- done
@automake -a -i $(AMFLAGS) $(makefile_files) 2>&1 \
| grep -v PHP_OUTPUT_FILES || true >&2
- @for i in $(LT_TARGETS); do mv $$i.bak $$i; done
aclocal.m4: configure.in acinclude.m4
aclocal