X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=conf%2FMachineDef.Linux;h=2e854b80a1cc6155b5dc118b689903830c569aff;hp=c32dcce113e5c227e9495c2b624925f72bbb7af3;hb=9e11827bfb1e5d71580dfe3f4dccd7c12e87a09e;hpb=40da9a8f05d127017274c7bf2bf7df81a3d129d1;ds=sidebyside diff --git a/conf/MachineDef.Linux b/conf/MachineDef.Linux index c32dcce113e..2e854b80a1c 100644 --- a/conf/MachineDef.Linux +++ b/conf/MachineDef.Linux @@ -7,13 +7,18 @@ F77 = echo $*.F ; g77 CC = echo $*.c ; gcc # Global optimisation +OPT = -O2 OPT = -g # Shared library suffix SL = so # The options -CXXOPTS = -Wall -fPIC -fno-rtti -fno-exceptions +# +# starting from root.2.22 on Linux the flags -fno-rtti -fno-exceptions are +# not necessary any more +# +CXXOPTS = $(OPT) -Wall -fPIC COPT = $(OPT) FOPT = $(OPT) -fno-second-underscore @@ -26,9 +31,11 @@ CLIBFOPT = # Additional directories for dependencies -DEPINC = -I/usr/local/include/g++ -I/usr/local/include \ - -I/usr/local/i686-pc-linux-gnu/include \ - -I/usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.60/include +DEPINC = `rm -f /tmp/d.cxx; touch /tmp/d.cxx ; \ + g++ -v -c /tmp/d.cxx -o /dev/null 2>&1 | \ + awk 'BEGIN {i=0} {if(substr($$0,1,10)=="End of sea") i=0; \ + if(i==1) printf "%s",$$sub(" ","-I")" "; \ + if(substr($$0,1,10) == "\#include <") i=1}' ; rm /tmp/d.cxx` LD = g++ LDFLAGS = $(OPT)