From: Sascha Schumann Date: Mon, 10 Jul 2000 10:26:13 +0000 (+0000) Subject: Lift the add-once limit for libraries, because there are valid reasons X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~327 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f710625512f3c041f28fbca54e93c81d87a428f;p=php Lift the add-once limit for libraries, because there are valid reasons against it. When dealing with static libraries, the link order is important and it might be necessary to add a library multiple times to satisfy mutual symbol requirements. --- diff --git a/acinclude.m4 b/acinclude.m4 index b2e702e53e..c620edce3e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -547,9 +547,7 @@ AC_DEFUN(AC_ADD_LIBRARY,[ c|c_r|pthread*) ;; *) ifelse($3,,[ - AC_PHP_ONCE(LIBRARY, $1, [ - PHP_X_ADD_LIBRARY($1,$2,LIBS) - ]) + PHP_X_ADD_LIBRARY($1,$2,LIBS) ],[ if test "$ext_shared" = "yes"; then PHP_X_ADD_LIBRARY($1,$2,$3) @@ -566,9 +564,7 @@ dnl AC_ADD_LIBRARY_DEFER(library[, append]) dnl dnl add a library to the link line (deferred) AC_DEFUN(AC_ADD_LIBRARY_DEFER,[ - AC_PHP_ONCE(LIBRARY, $1, [ - ifelse($#, 1, DLIBS="-l$1 $DLIBS", DLIBS="$DLIBS -l$1") - ]) + ifelse($#, 1, DLIBS="-l$1 $DLIBS", DLIBS="$DLIBS -l$1") ]) dnl