diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-27 14:10:35 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:14:50 -0500 |
commit | 3da1690692bba615f5c08b4209b5b1578b8e5b3c (patch) | |
tree | 08449d4c12d5fdfdae1484ed47ba8fb42d6637b8 | |
parent | d18ec9fac82c09d14abb712eff88eceb2f5f6438 (diff) | |
download | samba-3da1690692bba615f5c08b4209b5b1578b8e5b3c.tar.gz samba-3da1690692bba615f5c08b4209b5b1578b8e5b3c.tar.bz2 samba-3da1690692bba615f5c08b4209b5b1578b8e5b3c.zip |
r18956: fix -pie and -fPIE together with configure -C
metze
(This used to be commit aafb86f6eb8661a1905a0ca4acda6673e9df51d5)
-rw-r--r-- | source3/configure.in | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/configure.in b/source3/configure.in index c5ad0aa93a..d97ca54485 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -340,22 +340,23 @@ AC_ARG_ENABLE(pie, [ --enable-pie Turn on pie support if available ( if test "x$enable_pie" != xno then - AC_CACHE_CHECK(for -fPIE, libc_cv_fpie, [dnl + AC_CACHE_CHECK(for -pie and -fPIE, samba_cv_fpie, [dnl cat > conftest.c <<EOF int foo; main () { return 0;} EOF if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fPIE -o conftest conftest.c 1>&AS_MESSAGE_LOG_FD]) then - libc_cv_fpie=yes - PIE_CFLAGS="-fPIE" - PIE_LDFLAGS="-pie" + samba_cv_fpie=yes + else + samba_cv_fpie=no fi rm -f conftest*]) fi -if test "x$PIE_CFLAGS" = x +if test x"${samba_cv_fpie}" = x"yes" then - libc_cv_fpie=no + PIE_CFLAGS="-fPIE" + PIE_LDFLAGS="-pie" fi m4_include(lib/socket_wrapper/config.m4) |