Skip to content

Commit c4d84aa

Browse files
author
Adam Dickmeiss
committed
Zend config sets ZEND_EXTRA_LIBS. Bugs 14452, 14602, 14616, 14824
1 parent bd32363 commit c4d84aa

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Makefile.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ LTLIBRARY_DEPENDENCIES = \
1414
$(TSRM_LIB)
1515

1616
LTLIBRARY_LDFLAGS = -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS)
17-
LTLIBRARY_LIBADD = $(LTLIBRARY_DEPENDENCIES) $(EXTRA_LIBS)
17+
LTLIBRARY_LIBADD = $(LTLIBRARY_DEPENDENCIES) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS)
1818

1919
PROGRAM_NAME = php
2020
PROGRAM_SOURCES = stub.c

configure.in

+4-1
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,8 @@ fi
817817
818818
PHP_REGEX
819819
820+
EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
821+
unset LIBS LDFLAGS
820822
821823
dnl Configuring Zend and TSRM.
822824
dnl -------------------------------------------------------------------------
@@ -841,7 +843,7 @@ if test "$abs_srcdir" != "$abs_builddir"; then
841843
INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM"
842844
fi
843845
844-
EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
846+
ZEND_EXTRA_LIBS="$LIBS"
845847
unset LIBS LDFLAGS
846848
847849
PHP_CONFIGURE_PART(Configuring TSRM)
@@ -993,6 +995,7 @@ PHP_SUBST(DEFS)
993995
PHP_SUBST_OLD(EXTENSION_DIR)
994996
PHP_SUBST(EXTRA_LDFLAGS)
995997
PHP_SUBST_OLD(EXTRA_LIBS)
998+
PHP_SUBST_OLD(ZEND_EXTRA_LIBS)
996999
PHP_SUBST(INCLUDES)
9971000
PHP_SUBST_OLD(INCLUDE_PATH)
9981001
PHP_SUBST_OLD(INSTALL_IT)

0 commit comments

Comments
 (0)