summaryrefslogtreecommitdiff
path: root/dynlib.m4
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-10-30 14:29:51 +0000
committerSascha Schumann <sas@php.net>2000-10-30 14:29:51 +0000
commit622e66b31f9696a1082898f4166d162ebac431cc (patch)
treeb5f2b879dcf787740b9f84706c215057817387d1 /dynlib.m4
parent7eed2e5b01fd872e724f5cfc18370a14e0311558 (diff)
downloadphp-git-622e66b31f9696a1082898f4166d162ebac431cc.tar.gz
LTLIBRARY_DEPENDENCIES might depend on variables defined in config_vars.mk,
so we force inclusion of that file before we use LTLIBRARY_DEPENDENCIES in a rule.
Diffstat (limited to 'dynlib.m4')
-rw-r--r--dynlib.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/dynlib.m4 b/dynlib.m4
index 19c9e84f5d..16ffbb56df 100644
--- a/dynlib.m4
+++ b/dynlib.m4
@@ -54,7 +54,13 @@ AC_DEFUN(LIB_BUILD,[
lib_target=""
$php_shtool mkdir -p $1
+ if test "$BSD_MAKEFILE" = "yes"; then
+ lib_include_conf=".include \"\$(top_builddir)/config_vars.mk\""
+ else
+ lib_include_conf="include \$(top_builddir)/config_vars.mk"
+ fi
cat >$lib_makefile<<EOF
+$lib_include_conf
LTLIBRARY_OBJECTS = \$(LTLIBRARY_SOURCES:.c=.lo) \$(LTLIBRARY_OBJECTS_X)
LTLIBRARY_SHARED_OBJECTS = \$(LTLIBRARY_OBJECTS:.lo=.slo)
EOF