This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld FAIL: bootstrap
> # cd binutils-build-dir
> # find -name Makefile | xargs grep "\-Wl,-rpath"
we think alike .. I was just doing that :
sedna $ find . -type f -name Makefile | xargs grep "\-Wl,\-rpath" | cut -f1 -d\: | sort -u
./bfd/Makefile
./bfd/doc/Makefile
./binutils/Makefile
./binutils/doc/Makefile
./gas/Makefile
./gas/doc/Makefile
./gprof/Makefile
./ld/Makefile
./opcodes/Makefile
sedna $
sedna $ grep "\-Wl,\-rpath" ./ld/Makefile
LIBINTL = /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -lc -Wl,-rpath -Wl,/usr/local/lib
sedna $
OKay .. so there is the issue.
Where is this coming from ? Well it looks like a .la file somewhere or a .pc file messing with libtool perhaps.
sedna $ find /usr/local/lib -type f | xargs grep "\-Wl,\-rpath" | cut -f1 -d\: | sort -u
/usr/local/lib/tclConfig.sh
/usr/local/lib/tkConfig.sh
sedna $ find /usr/local/include -type f | xargs grep "\-Wl,\-rpath" | cut -f1 -d\: | sort -u
/usr/local/include/gmp.h
sedna $ find /usr/local/share -type f | xargs grep "\-Wl,\-rpath" | cut -f1 -d\: | sort -u
/usr/local/share/dejagnu/target.exp
Well I *need* -Wl,-rpath=/usr/local/lib to ensure that the RPATH is set correctly in the output elf objects otherwise I get cross pollutioins from the system libs.
Any thoughts ? Hand edit the Makefiles and try again ?
dc