r19851: Disable gcc PIE options on Darwin.
authorJames Peach <jpeach@samba.org>
Thu, 23 Nov 2006 06:07:03 +0000 (06:07 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:16:02 +0000 (12:16 -0500)
(This used to be commit 23795be8b429d4423263e60ce80f454e2e42cae7)

source3/configure.in

index 4a453e42854b7d8cb3b89bc60ae5daee55cf0415..c534d870a133946e6d467ee335ce702360dde59f 100644 (file)
@@ -1841,6 +1841,11 @@ case "$host_os" in
                        BLDSHARED="true"
                        LDSHFLAGS="-bundle -flat_namespace -undefined suppress"
                        SHLIBEXT="dylib"
+                       # Since gcc doesn't fail on unrecognised options, the
+                       # PIE test incorrectly succeeds. Darwin gcc does not
+                       # actually support the PIE stuff.
+                       PIE_LDFLAGS=
+                       PIE_CFLAGS=
                        AC_DEFINE(STAT_ST_BLOCKSIZE,512)
                        ;;