]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - build/Makefile.macosx
Take compilers and linker from root
[u/mrichter/AliRoot.git] / build / Makefile.macosx
index 9e1bcf55851ceb1437b26c9ab2e4d2c623182279..3d23a42fc4a7c989298d71c79f7bd80d67ae964c 100644 (file)
@@ -15,8 +15,8 @@ FINK_ROOT=/usr/local
 endif
 
 # The compilers
-CXX           = g++ 
-CC           = gcc
+CXX           = $(shell root-config --cxx) 
+CC           = $(shell root-config --cc)
 F77          = $(shell root-config --f77)
 
 # Global optimisation
@@ -62,7 +62,7 @@ CINTFLAGS     =
 
 LD            = export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_MAJOR).$(MACOSX_MINOR) ; \
                unset LD_PREBIND ; \
-               g++
+               $(shell root-config --ld)
 LDFLAGS       = $(OPT) $(DICTLOAD)
 
 SHLD        := $(LD)