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 =
# 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
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`