summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-19 10:07:29 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:44 +0100
commit662cda2138872d7a6b72278cb9561e64ee35fbdc (patch)
tree691c3b4e8f5c6bc29df38982448a0dff84ee1de3 /source4/lib
parent365c6b86e9297c8888139bbc61cb270f16b46dab (diff)
downloadsamba-662cda2138872d7a6b72278cb9561e64ee35fbdc.tar.gz
samba-662cda2138872d7a6b72278cb9561e64ee35fbdc.tar.bz2
samba-662cda2138872d7a6b72278cb9561e64ee35fbdc.zip
r26025: libreplace: AC_LIBREPLACE_LD_ALLOW_SHLIB_UNDEF_FLAG should fill LD_ALLOW_SHLIB_UNDEF_FLAG
metze (This used to be commit d2fb7d876bb1960c02fa7b9c0fb53315ae0cd99c)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/replace/libreplace_ld.m415
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)
])