summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-05-16 04:05:53 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-05-16 04:05:53 +0200
commita0caffd4463f11582747bb64d2e8796bb6fc83c0 (patch)
treeb266ba3a90a5924a0563b53c731d10ed13ecf7a9 /lib/replace
parent6230eb94af2305f479db3b76479a0dc841c3d1d5 (diff)
downloadsamba-a0caffd4463f11582747bb64d2e8796bb6fc83c0.tar.gz
samba-a0caffd4463f11582747bb64d2e8796bb6fc83c0.tar.bz2
samba-a0caffd4463f11582747bb64d2e8796bb6fc83c0.zip
Fix linker flags on non-Linux GNU platforms.
(e.g. Debian GNU/kFreeBSD) Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/libreplace_ld.m410
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/replace/libreplace_ld.m4 b/lib/replace/libreplace_ld.m4
index 9529c5e0a5..6a99e96653 100644
--- a/lib/replace/libreplace_ld.m4
+++ b/lib/replace/libreplace_ld.m4
@@ -40,7 +40,7 @@ LDFLAGS="$saved_LDFLAGS"
AC_DEFUN([AC_LD_PICFLAG],
[
case "$host_os" in
- *linux*)
+ *linux*|*gnu*)
PICFLAG="-fPIC"
;;
*solaris*)
@@ -111,7 +111,7 @@ AC_DEFUN([AC_LIBREPLACE_LD_SHLIB_FLAGS],
LD_SHLIB_FLAGS="-shared"
case "$host_os" in
- *linux*)
+ *linux*|*gnu*)
LD_SHLIB_FLAGS="-shared -Wl,-Bsymbolic"
;;
*solaris*)
@@ -209,7 +209,7 @@ AC_DEFUN([AC_LD_SONAMEFLAG],
AC_SUBST(SONAMEFLAG)
SONAMEFLAG=""
case "$host_os" in
- *linux*)
+ *linux*|*gnu*)
SONAMEFLAG="-Wl,-soname="
;;
*solaris*)
@@ -261,7 +261,7 @@ AC_DEFUN([AC_LIBREPLACE_LD_SHLIB_ALLOW_UNDEF_FLAG],
LD_ALLOW_SHLIB_UNDEF_FLAG=""
case "$host_os" in
- *linux*)
+ *linux*|*gnu*)
LD_SHLIB_ALLOW_UNDEF_FLAG="-Wl,--allow-shlib-undefined"
;;
*osf*)
@@ -289,7 +289,7 @@ AC_DEFUN([AC_LIBREPLACE_MDLD_FLAGS],
AC_DEFUN([AC_LIBREPLACE_RUNTIME_LIB_PATH_VAR],
[
case "$host_os" in
- *linux*)
+ *linux*|*gnu*)
LIB_PATH_VAR=LD_LIBRARY_PATH
;;
*bsd*)