Mods for MacOSX 10.4
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Jun 2005 22:15:24 +0000 (22:15 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Jun 2005 22:15:24 +0000 (22:15 +0000)
MONITOR/binmonitorCheck.pkg

index 22a599b..58fd3de 100644 (file)
@@ -25,10 +25,13 @@ ELIBS:= pythia6 pdf microcern
 
 endif
 
-ifeq (macosx,$(ALICE_TARGET))
+ifneq (,$(findstring macosx,$(ALICE_TARGET)))
 @PACKAGE@LIBSINIT:=$(filter-out microcern,$(ELIBS))
 @PACKAGE@LIBSINIT:=$(filter-out pdf,$(@PACKAGE@LIBSINIT))
 PACKLDFLAGS:=$(LDFLAGS) $(@PACKAGE@LIBSINIT:%=-Wl,-u,_G__cpp_setupG__%)
-# On Mac OS X gcc we need g2c
+# On Mac OS X gcc we need g2c for versions before 10.4
+ifneq ($(MACOSX_MINOR),4)
 ELIBS+=g2c
+ELIBSDIR+=$(dir $(shell find $(FINK_ROOT) -name 'libg2c.*'))
+endif
 endif