diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/replace/libreplace_ld.m4 | 15 |
1 files changed, 9 insertions, 6 deletions
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) ]) |