diff options
author | tradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef> | 2001-12-16 22:55:03 +0000 |
---|---|---|
committer | tradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef> | 2001-12-16 22:55:03 +0000 |
commit | 06509e24efd4810e106c0c390b3bc664fa0efb34 (patch) | |
tree | 08a31110a0a588bb2db6df2cb6871d96da82ed17 | |
parent | 8dad619cbf3396376f959e4caa2f7a21541bd66c (diff) |
Set CXXFLAGS for GNU compiler on SGI.
Closes PR external/570.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/FlexIO/trunk@25 21a6bef8-4479-4f54-8f8d-0db94a2919ef
-rw-r--r-- | src/make.code.defn | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/make.code.defn b/src/make.code.defn index b1b1a11..7d54246 100644 --- a/src/make.code.defn +++ b/src/make.code.defn @@ -32,14 +32,24 @@ endif # 64 Bit Irix ifeq ($(UNAME), IRIX64) -CXXFLAGS += -DANSI -ptused -DSGI +# check for native or GNU compiler +ifeq ($(CXX), CC) + CXXFLAGS += -DANSI -ptused -DSGI +else + CXXFLAGS += -DANSI +endif endif # 32 Bit Irix ifeq ($(UNAME), IRIX) -CXXFLAGS += -DANSI -ptused -DSGI +# check for native or GNU compiler +ifeq ($(CXX), CC) + CXXFLAGS += -DANSI -ptused -DSGI +else + CXXFLAGS += -DANSI +endif endif @@ -126,4 +136,3 @@ CXX_FLAGS_solaris2.7 = -instances=static CXX_FLAGS_solaris2.8 = -instances=static CXXFLAGS += $(CXX_FLAGS_${OS}) - |