From: Björn Jacke Date: Sun, 7 Feb 2010 23:08:38 +0000 (+0100) Subject: s3: quiet the unresolved symbol warnings of the Compaq compiler when linking our... X-Git-Tag: samba-3.6.0pre1~5537 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=2aff1d6bcaba6d1bcc9bace064dd4b70c38a4bf6 s3: quiet the unresolved symbol warnings of the Compaq compiler when linking our vfs modules --- diff --git a/source3/configure.in b/source3/configure.in index 14b57b688a1..1f696099230 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)