From 4f710625512f3c041f28fbca54e93c81d87a428f Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Mon, 10 Jul 2000 10:26:13 +0000 Subject: [PATCH] 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. --- acinclude.m4 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 -- 2.50.1