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 a25e147..de2b4ec 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