Update for Mac OS X 10.3
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Mar 2004 12:39:57 +0000 (12:39 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Mar 2004 12:39:57 +0000 (12:39 +0000)
build/Makefile.Darwin
build/makeg2cso.sh

index 9fcb785e79a5c11db6759cf70dd25088ba7f44d5..e5f9ec1a447be8be4fd0b1fda51bae83cedbb2d3 100644 (file)
@@ -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
 
index 2bfd73026a22bd2933a1c7beb716ce986d39cb3c..45ac317dde54ca1d0081027b3bc7539a850b7018 100755 (executable)
@@ -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`