]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Filter out the Fortran optimisation in case of gcc version less than 3
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 Jul 2002 17:43:50 +0000 (17:43 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 Jul 2002 17:43:50 +0000 (17:43 +0000)
GEANT321/libgeant321.pkg

index a25e147e9ea0ae38834dd3444a962ad334d367ff..de2b4ec4b8fc37959dd64f473a6dd5b44eef058c 100644 (file)
@@ -952,7 +952,11 @@ gcinit.F \
 SRCS=comad/gcadd.cxx 
  
 ifeq ($(PLATFORM),linux)
-#   PACKFFLAGS      := $(filter-out -O%,$(FFLAGS))  
+   GCC_MAJOR    := $(shell $(CXX) -v 2>&1 | \
+                     grep version | cut -d' ' -f3  | cut -d'.' -f1)
+   ifneq ($(GCC_MAJOR),3)
+      PACKFFLAGS      := $(filter-out -O%,$(FFLAGS))
+   endif
 endif