diff options
author | Björn Jacke <bj@sernet.de> | 2010-02-08 00:08:38 +0100 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2010-02-08 02:32:39 +0100 |
commit | 2aff1d6bcaba6d1bcc9bace064dd4b70c38a4bf6 (patch) | |
tree | 8b10214a6807915008f749b60d8ec507685b2f90 | |
parent | f692c6dbc4776cd0dc69bd8d6cf65fbfadc57c9b (diff) | |
download | samba-2aff1d6bcaba6d1bcc9bace064dd4b70c38a4bf6.tar.gz samba-2aff1d6bcaba6d1bcc9bace064dd4b70c38a4bf6.tar.bz2 samba-2aff1d6bcaba6d1bcc9bace064dd4b70c38a4bf6.zip |
s3: quiet the unresolved symbol warnings of the Compaq compiler when linking our vfs modules
-rw-r--r-- | source3/configure.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in index 14b57b688a..1f69609923 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1658,6 +1658,17 @@ DSO_EXPORTS="" PICFLAG="-fPIC" AC_DEFINE(STAT_ST_BLOCKSIZE,512) AC_DEFINE(BROKEN_GETGRNAM,1,[Does getgrnam work correctly]) + for flags in "-expect_unresolved '*'" "-Wl,-expect_unresolved,'*'" ; do + saved_ldflags="$LDFLAGS" + AC_MSG_CHECKING([if $flags works]) + LDFLAGS="$flags $saved_ldflags" + AC_TRY_LINK([],[], + [AC_MSG_RESULT([yes]) + LDSHFLAGS_Z_NODEFS=$flags], + AC_MSG_RESULT([no])) + LDFLAGS="$saved_ldflags" + test x"$LDSHFLAGS_Z_NODEFS" != x && break + done ;; *sco*) AC_DEFINE(SCO,1,[Whether the host os is sco unix]) AC_DEFINE(STAT_ST_BLOCKSIZE,512) |