pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libtool using -rpath on Darwin



Hi,

building graphics/jbigkit on MacOS X Tiger / Darwin 8 fails with

[...]
gmake[1]: Entering directory 
'/opt/local/obj/graphics/jbigkit/work/jbigkit-2.1/pbmtools'
/opt/local/obj/graphics/jbigkit/work/.cwrapper/bin/libtool  
--mode=compile cc -O2 -mcpu=7450 -I../libjbig -o pbmtojbg.lo -c 
pbmtojbg.c
libtool: compile:  cc -O2 -mcpu=7450 -I../libjbig -c pbmtojbg.c  
-fno-common -DPIC -o .libs/pbmtojbg.o
libtool: compile:  cc -O2 -mcpu=7450 -I../libjbig -c pbmtojbg.c -o 
pbmtojbg.o >/dev/null 2>&1
/opt/local/obj/graphics/jbigkit/work/.cwrapper/bin/libtool  --mode=link 
cc -O2 -mcpu=7450 -L/opt/local/lib -o pbmtojbg pbmtojbg.lo 
../libjbig/libjbig.la -R /opt/local/lib
libtool: link: cc -O2 -mcpu=7450 -o .libs/pbmtojbg .libs/pbmtojbg.o 
-Wl,-rpath -Wl,/opt/local/lib  
-L/opt/local/obj/graphics/jbigkit/work/.buildlink/lib 
../libjbig/.libs/libjbig.dylib 
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: unknown flag: -rpath
collect2: ld returned 1 exit status
gmake[1]: *** [Makefile:21: pbmtojbg] Error 1
gmake[1]: Leaving directory 
'/opt/local/obj/graphics/jbigkit/work/jbigkit-2.1/pbmtools'
gmake: *** [Makefile:21: pbm] Error 2
*** Error code 2

even though mk/platform/Darwin.mk tries to discourage sending GNU ld 
specific options to the system linker.

The jbigkit build system is heavily patched to use libtool on every 
corner. What does it miss on Darwin?

Cheerio,
Hauke

-- 
Hauke Fath                        <hauke%Espresso.Rhein-Neckar.DE@localhost>
Grabengasse 57
64372 Ober-Ramstadt
Germany


Home | Main Index | Thread Index | Old Index