summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-16 09:31:49 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:45:29 +0100
commit896e46aa6c3952b4955c87a867c24705ed85f47d (patch)
tree532cd444c91b512bcd3e0368b7092050086edf7f
parentdaa73ef1c6e739f5387e20aec874f367c6d6e058 (diff)
downloadsamba-896e46aa6c3952b4955c87a867c24705ed85f47d.tar.gz
samba-896e46aa6c3952b4955c87a867c24705ed85f47d.tar.bz2
samba-896e46aa6c3952b4955c87a867c24705ed85f47d.zip
r25986: libreplace: warn about unresolved symbols when link shared libraries
On Tru64 and Mac OS X this hopefully works Note: -Wl,--no-allow-shlib-undefined doesn't tests what we want on Linux. metze (This used to be commit 7bee9a62ffda64a1bdcdbdd38dbb181eac8b641e)
-rw-r--r--source4/lib/replace/libreplace_ld.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/replace/libreplace_ld.m4 b/source4/lib/replace/libreplace_ld.m4
index 9356ebdf6e..ac8c870a64 100644
--- a/source4/lib/replace/libreplace_ld.m4
+++ b/source4/lib/replace/libreplace_ld.m4
@@ -110,8 +110,11 @@ AC_DEFUN([AC_LD_SHLDFLAGS],
SHLD_FLAGS="-b"
fi
;;
+ *osf*)
+ SHLD_FLAGS="-shared -warning_unresolved"
+ ;;
*darwin*)
- SHLD_FLAGS="-bundle -flat_namespace -undefined suppress -Wl,-search_paths_first"
+ SHLD_FLAGS="-bundle -flat_namespace -undefined warning -Wl,-search_paths_first"
;;
esac