aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2007-08-30 16:04:38 +0000
committertradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2007-08-30 16:04:38 +0000
commit55b510784c16c992a3b8babadf03c2a7eee95331 (patch)
tree549db7a848c4ad9effaaec08e36fd01cae9574cc
parent2a003f7774c5fcc8d753c3fa125de1992ee3db6a (diff)
don't use '-tused' flag for pgCC version 7
git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/FlexIO/trunk@82 21a6bef8-4479-4f54-8f8d-0db94a2919ef
-rw-r--r--src/make.code.defn5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/make.code.defn b/src/make.code.defn
index 697539b..0e06221 100644
--- a/src/make.code.defn
+++ b/src/make.code.defn
@@ -85,11 +85,14 @@ ifeq ($(UNAME), Linux)
CXXFLAGS += -DANSI
-# Portland group compiler has special flag
+# Portland group compiler < 7.x has special flag
# to control instantiation of template functions
ifeq ($(CXX), pgCC)
+IS_PGI7 := $(shell pgCC -V | grep 'pgCC 7')
+ifeq ($(IS_PGI7),)
CXXFLAGS += -tused
endif
+endif
endif