]> granicus.if.org Git - postgresql/commitdiff
Latest version of gcc from Apple does not work well with -traditional-cpp
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Sep 2003 20:47:59 +0000 (20:47 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Sep 2003 20:47:59 +0000 (20:47 +0000)
(it rejects some system header files...).  Use -no-cpp-precomp instead.
I think it is okay to change this unconditionally, but if we hear
complaints from people still using very old compilers on Darwin,
we could put in a test to see which switch the compiler likes.

src/template/darwin

index 3c9f0cbe8dcbfa1b8b5c62c61730018cb1d4ea9e..baf462baf629e77860bbd068214fee4b5557856e 100644 (file)
@@ -1,6 +1,6 @@
-# -traditional-cpp means "don't use apple's cpp-precomp" on darwin
-# this should change to -no-cpp-precomp when that flag is implemented
-CC="$CC -traditional-cpp"
+# Apple's cpp-precomp seems a tad broken, so don't use it
+# (Note: on OS X before 10.2, you might need -traditional-cpp instead)
+CC="$CC -no-cpp-precomp"
 
 # Select appropriate semaphore support
 USE_NAMED_POSIX_SEMAPHORES=1