From: alibrary Date: Thu, 11 Mar 2004 12:39:57 +0000 (+0000) Subject: Update for Mac OS X 10.3 X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=a744ab411e133d5c2e899081f356a134ce5d80fb Update for Mac OS X 10.3 --- diff --git a/build/Makefile.Darwin b/build/Makefile.Darwin index 9fcb785e79a..e5f9ec1a447 100644 --- a/build/Makefile.Darwin +++ b/build/Makefile.Darwin @@ -10,9 +10,9 @@ OPT = -O -g CXXOPTS = $(OPT) -Wall -W -pipe -fsigned-char -fno-common -fweak-coalesced -fmessage-length=0 COPT = $(OPT) -Wall -W -fno-common -fweak-coalesced -FOPT = $(OPT) -fno-second-underscore -fweak-coalesced +FOPT = $(OPT) -fno-second-underscore CXXFLAGS = $(CXXOPTS) -I/sw/include -CFLAGS = -Wall -pipe +CFLAGS = -Wall -pipe -I/sw/include # rootcint flags CINTFLAGS = @@ -27,17 +27,19 @@ CLIBFOPT = # Common Fortran compilation flags FFLAGS = $(CLIBFOPT) $(CLIBDEFS) $(FOPT) -LD = export MACOSX_DEPLOYMENT_TARGET=10.2 ; g++ +LD = export MACOSX_DEPLOYMENT_TARGET=10.3 ; \ + unset LD_PREBIND ; \ + g++ LDFLAGS = $(OPT) SHLD := $(LD) -SOFLAGS := -bundle -flat_namespace -undefined suppress +SOFLAGS := -bundle -flat_namespace -undefined dynamic_lookup #SHLIB := -lg2c SHLIB := SOEXT := so DYLD := $(LD) -DYFLAGS = -dynamiclib -flat_namespace -undefined suppress -single_module +DYFLAGS = -dynamiclib -flat_namespace -undefined dynamic_lookup -single_module DYLIB := DYEXT := dylib diff --git a/build/makeg2cso.sh b/build/makeg2cso.sh index 2bfd73026a2..45ac317dde5 100755 --- a/build/makeg2cso.sh +++ b/build/makeg2cso.sh @@ -2,9 +2,10 @@ out=$ALICE_ROOT/lib/tgt_$ALICE_TARGET/libg2c_sh cd /tmp rm -rf g2c ; mkdir g2c ; cd g2c -ar -x /usr/lib/gcc/darwin/default/libg2c.a -export MACOSX_DEPLOYMENT_TARGET=10.2 +ar -x /sw/lib/libg2c.a +export MACOSX_DEPLOYMENT_TARGET=10.3 +unset LD_PREBIND rm -f ${out}.so ${out}.dylib -g++ -bundle -flat_namespace -undefined suppress -o ${out}.so `ls *.o | grep -v buggy` -g++ -dynamiclib -flat_namespace -undefined suppress -single_module -o ${out}.dylib `ls *.o | grep -v buggy` +g++ -bundle -flat_namespace -undefined dynamic_lookup -o ${out}.so `ls *.o | grep -v buggy` +g++ -dynamiclib -flat_namespace -undefined dynamic_lookup -single_module -o ${out}.dylib `ls *.o | grep -v buggy`