summaryrefslogtreecommitdiff
path: root/lib/make/known-architectures/darwin
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-04-18 23:10:15 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-04-18 23:10:15 +0000
commitc303dc099bc26714467872643799f44a051a204d (patch)
tree6c645838f857cd5236faf14282809622fbb2a085 /lib/make/known-architectures/darwin
parent3a555e85277fe85c41fe58969972b840d74e9b18 (diff)
John's changes to the preprocessor flags to fix darwin-specific problems
eg. with passing an empty macro into other macros. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2728 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/known-architectures/darwin')
-rw-r--r--lib/make/known-architectures/darwin22
1 files changed, 13 insertions, 9 deletions
diff --git a/lib/make/known-architectures/darwin b/lib/make/known-architectures/darwin
index 13e6f3ea..ec4a23d2 100644
--- a/lib/make/known-architectures/darwin
+++ b/lib/make/known-architectures/darwin
@@ -6,7 +6,7 @@
# @desc
# Known architecture stuff for MacOS X (Darwin)
# @enddesc
-# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/darwin,v 1.2 2001-09-18 16:37:32 allen Exp $
+# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/darwin,v 1.3 2002-04-18 23:10:15 tradke Exp $
# @@*/
if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then
@@ -15,7 +15,11 @@ if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then
else
-# Determine which Fortran 90 compiler is in use
+ # this fixes some darwin-specific preprocessor bugs (?)
+ CFLAGS='-o-cpp-precomp'
+ C_DEPEND='$(CC) -E -M $(CFLAGS) $(CPPFLAGS)'
+
+ # Determine which Fortran 90 compiler is in use
MAC_F90_COMP=none
if test -n "$F90" && test "$F90" != "none" ; then
@@ -32,7 +36,7 @@ else
fi
fi
-#Set the appropriate flags
+ #Set the appropriate flags
case "$MAC_F90_COMP" in
absoft)
: ${LIBS="f90math fio f77math m"}
@@ -71,15 +75,15 @@ else
;;
esac
-# Darwin's ar command doesn't understand the '-s' flag
-# so we have to use ranlib to add a table of contents to libraries
+ # Darwin's ar command doesn't understand the '-s' flag
+ # so we have to use ranlib to add a table of contents to libraries
: ${ARFLAGS='ruc'}
: ${USE_RANLIB='yes'}
-# MPI stuff
-#
-# Darwin has no native MPI, so we don't set any NATIVE_MPI_XXX variables.
-# This is caught later on by lib/make/extras/MPI/NATIVE.
+ # MPI stuff
+ #
+ # Darwin has no native MPI, so we don't set any NATIVE_MPI_XXX variables.
+ # This is caught later on by lib/make/extras/MPI/NATIVE.
fi