aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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