1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 00:53:30 +02:00

make configure more robust if extensions add libraries without

checking for their existance first

old behaviour was to fail on the next library check with misleading
messages, now configure will work but make will fail with a
'lib not found' message
This commit is contained in:
Hartmut Holzgraefe
2002-01-03 20:30:07 +00:00
parent c9bc54abc3
commit d63edeba21
2 changed files with 2 additions and 2 deletions

View File

@@ -749,7 +749,7 @@ AC_DEFUN(PHP_ADD_LIBRARY,[
c|c_r|pthread*) ;;
*)
ifelse($3,,[
PHP_X_ADD_LIBRARY($1,$2,LIBS)
PHP_X_ADD_LIBRARY($1,$2,PHP_EXTENSION_LIBS)
],[
if test "$ext_shared" = "yes"; then
PHP_X_ADD_LIBRARY($1,$2,$3)

View File

@@ -727,7 +727,7 @@ if test "$abs_srcdir" != "$abs_builddir"; then
INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM"
fi
EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS $PHP_EXTENSION_LIBS"
unset LIBS LDFLAGS
PHP_CONFIGURE_PART(Configuring TSRM)