aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-09-19 20:47:59 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-09-19 20:47:59 +0000
commitfc6b7c550da8ac47df7d34df523428c553e6c9a3 (patch)
tree628b532a392eb20934e04b65b4abed91b50e065e /src
parent28847ae77d8947f32fa96cb68f7f3d1b5ca2ae30 (diff)
downloadpostgresql-fc6b7c550da8ac47df7d34df523428c553e6c9a3.tar.gz
postgresql-fc6b7c550da8ac47df7d34df523428c553e6c9a3.zip
Latest version of gcc from Apple does not work well with -traditional-cpp
(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.
Diffstat (limited to 'src')
-rw-r--r--src/template/darwin6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/template/darwin b/src/template/darwin
index 3c9f0cbe8dc..baf462baf62 100644
--- a/src/template/darwin
+++ b/src/template/darwin
@@ -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