-rpath unrecognised by linker
-rpath unrecognised by linker
- Subject: -rpath unrecognised by linker
- From: Alan Fry <email@hidden>
- Date: Sat, 11 Nov 2006 12:44:50 +0000
I have been attempting to install a package 'netpbm' with partially
successful results.
The package compiles (with gcc 3.3 or gcc 4.0.1) but the linker jibs
at the option '-rpath'. Here are the last few lines of the log:
cc -no-cpp-precomp -o pnmcolormap pnmcolormap.o -lm `/Users/alanfry/
Desktop/netpbm-10.26.33/buildtools/libopt /Users/alanfry/Desktop/
netpbm-10.26.33/lib/libnetpbm.dylib` \
-rpath/usr/local/netpbm
libopt results: ' -L/Users/alanfry/Desktop/netpbm-10.26.33/lib -lnetpbm'
cc: unrecognized option `-rpath/usr/local/netpbm'
echo "EXISTENCE OF THIS FILE MEANS NETPBM HAS BEEN BUILT." \
>build_complete
The result of this is the binaries in '/usr/local/netpbm/bin' look
for the 'dylib' at the top level instead of '/usr/local/netpbm'.
FWIW, the 'Makefile.config' file reads:
####Lines below were added by 'configure' based on the DARWIN platform.
DEFAULT_TARGET = nonmerge
NETPBMLIBTYPE=dylib
NETPBMLIBSUFFIX=dylib
STATICLIB_TOO=n
NETPBMLIB_RUNTIME_PATH=/usr/local/netpbm
RPATHOPT = -R
CC = cc -no-cpp-precomp
CFLAGS_SHLIB = -fno-common
LDSHLIB = -dynamiclib -install_name $(NETPBM_RUNTIME_PATH)/libnetpbm.$
(MAJ).dylib
LINKERISCOMPILER = N
TIFFLIB = libtiff.so
JPEGLIB = libjpeg.so
PNGLIB = libpng.so
ZLIB = libz.so
NETPBM_DOCURL = http://netpbm.sourceforge.net/doc/
The line RPATHOPT = -R is one I added in the hope it might fix the
problem (it made no difference). If 'LINKERISCOMPILER = N' is set to
'Y' the 'make' bombs out at the first instance of -rpath.
I am stuck at this point and would be grateful for any help.
My apologies if this is not an appropriate question for this list.
Alan Fry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden