From 662cda2138872d7a6b72278cb9561e64ee35fbdc Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 19 Nov 2007 10:07:29 +0100 Subject: r26025: libreplace: AC_LIBREPLACE_LD_ALLOW_SHLIB_UNDEF_FLAG should fill LD_ALLOW_SHLIB_UNDEF_FLAG metze (This used to be commit d2fb7d876bb1960c02fa7b9c0fb53315ae0cd99c) --- source4/lib/replace/libreplace_ld.m4 | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'source4') diff --git a/source4/lib/replace/libreplace_ld.m4 b/source4/lib/replace/libreplace_ld.m4 index 58b94673dc..e98885445d 100644 --- a/source4/lib/replace/libreplace_ld.m4 +++ b/source4/lib/replace/libreplace_ld.m4 @@ -221,25 +221,28 @@ AC_DEFUN([AC_LIBREPLACE_MDLD], AC_DEFUN([AC_LIBREPLACE_LD_ALLOW_SHLIB_UNDEF_FLAG], [ + LD_ALLOW_SHLIB_UNDEF_FLAG="" + case "$host_os" in *linux*) - SHLD_ALLOW_SHLIB_UNDEF_FLAG="-Wl,--allow-shlib-undefined" + LD_ALLOW_SHLIB_UNDEF_FLAG="-Wl,--allow-shlib-undefined" ;; *osf*) - SHLD_ALLOW_SHLIB_UNDEF_FLAG="-expect_unresolved '*'" + LD_ALLOW_SHLIB_UNDEF_FLAG="-expect_unresolved '*'" ;; *darwin*) - SHLD_ALLOW_SHLIB_UNDEF_FLAG="-undefined suppress" + LD_ALLOW_SHLIB_UNDEF_FLAG="-undefined suppress" ;; - esac - AC_SUBST(SHLD_ALLOW_SHLIB_UNDEF_FLAG) + esac + + AC_SUBST(LD_ALLOW_SHLIB_UNDEF_FLAG) ]) AC_DEFUN([AC_LIBREPLACE_MDLD_FLAGS], [ AC_LIBREPLACE_SHLD_FLAGS() AC_LIBREPLACE_LD_ALLOW_SHLIB_UNDEF_FLAG() - MDLD_FLAGS="$SHLD_FLAGS $SHLD_ALLOW_SHLIB_UNDEF_FLAG" + MDLD_FLAGS="$SHLD_FLAGS $LD_ALLOW_SHLIB_UNDEF_FLAG" AC_SUBST(MDLD_FLAGS) ]) -- cgit