Ticket #37580: patch-Makefile.OSX-10.6.diff

File patch-Makefile.OSX-10.6.diff, 1.4 KB (added by florian@…, 11 years ago)

Makefile patch

  • pdftk/Makefile.OSX-10.6

    old new  
    2020
    2121# tools
    2222# need direct path to libgcj for gcjh (starting in gcj 4.1.2 per Aurélien GÉRÔME)
    23 TOOLPATH=/sw/lib/gcc4.5/bin/
     23TOOLPATH=@PREFIX@/bin/
    2424export VERSUFF=-fsf-4.5
    2525export CXX= $(TOOLPATH)g++$(VERSUFF)
    2626export GCJ= $(TOOLPATH)gcj$(VERSUFF)
    2727export GCJH= $(TOOLPATH)gcjh$(VERSUFF)
    2828export GJAR= $(TOOLPATH)gjar$(VERSUFF)
    29 export LIBGCJ= /sw/lib/gcc4.5/share/java/libgcj-4.5.0.jar
     29export LIBGCJ= @PREFIX@/share/java/libgcj-$(shell $(GCJ) -dumpversion).jar
    3030export AR= ar
    3131export RM= rm
    3232export ARFLAGS= rs
     
    6363# only effects libraries following option on the command line
    6464#
    6565
    66 export MACOSX_DEPLOYMENT_TARGET= 10.4
    67 export CPPFLAGS= -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers -mmacosx-version-min=10.4
     66export CPPFLAGS= -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers
    6867export CXXFLAGS= -Wall -Wextra -Weffc++ -O2
    6968export GCJFLAGS= -Wall -fsource=1.3 -O2
    7069export GCJHFLAGS= -force
    71 export LDLIBS= /sw/lib/gcc4.5/lib/libgcj.dylib /sw/lib/gcc4.5/lib/libstdc++.dylib /sw/lib/gcc4.5/lib/libgcc_s.1.dylib -liconv -lz
     70export LDLIBS= $(shell $(CXX) -print-file-name=libgcj.dylib) $(shell $(CXX) -print-file-name=libstdc++.dylib) $(shell $(CXX) -print-file-name=libgcc_s.1.dylib)
    7271
    7372include Makefile.Base