Skip to content
Snippets Groups Projects
Commit f31f3df0 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

Compiling TTreeFormula.cxx with NOOPT on MacOS with gcc 4.0.1 fixes crash

in stress.


git-svn-id: http://root.cern.ch/svn/root/trunk@13728 27541ba8-7e3a-0410-8455-c3a389f83636
parent edd1a1b0
No related branches found
No related tags found
No related merge requests found
......@@ -259,9 +259,11 @@ endif
##### gcc version #####
ifneq ($(findstring gnu,$(COMPILER)),)
GCC_MAJOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f1)
GCC_MINOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f2)
GCC_VERS := gcc-$(GCC_MAJOR).$(GCC_MINOR)
GCC_MAJOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f1)
GCC_MINOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f2)
GCC_PATCH := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f3)
GCC_VERS := gcc-$(GCC_MAJOR).$(GCC_MINOR)
GCC_VERS_FULL := gcc-$(GCC_MAJOR).$(GCC_MINOR).$(GCC_PATCH)
endif
##### f77 options #####
......
......@@ -68,3 +68,11 @@ distclean-treeplayer: clean-treeplayer
$(TREEPLAYERLIB)
distclean:: distclean-treeplayer
##### extra rules ######
ifeq ($(ARCH),macosx)
ifeq ($(GCC_VERS_FULL),gcc-4.0.1)
$(TREEPLAYERDIRS)/TTreeFormula.o: $(TREEPLAYERDIRS)/TTreeFormula.cxx
$(CXX) $(NOOPT) $(CXXFLAGS) -o $@ -c $<
endif
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment