]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PYTHIA6/libpythia6.pkg
Switch off the Fortran optimisation in case of gcc 2.96
[u/mrichter/AliRoot.git] / PYTHIA6 / libpythia6.pkg
index 0200140a37090573f36513b58849e94afc299d2c..e3dbba8b14a88473f71ea811e53cfb594daa713e 100644 (file)
@@ -8,6 +8,12 @@ pdf_alice.F\
 tpythia6_called_from_cc.F\
 openDecayTable.F
 
-
+ifeq ($(PLATFORM),linux)
+   GCC_VERSION    := $(shell $(CXX) -v 2>&1 | \
+                     grep version | cut -d' ' -f3)
+   ifeq ($(GCC_VERSION),2.96)
+      PACKFFLAGS      := $(filter-out -O%,$(FFLAGS))
+   endif
+endif