Why do we need to set HOST_LIB_PATH_bfd/HOST_LIB_PATH_opcodes?

H.J. Lu hjl.tools@gmail.com
Sat Aug 25 15:32:00 GMT 2012


Setting HOST_LIB_PATH_bfd/HOST_LIB_PATH_opcodes causes:

as: error while loading shared libraries:
file too short
make[4]: *** [gold-threads.o] Error 2

when compiling gold using binutils linked with the same versions of libbfd
and libopcodes. As far as I can tell, one can run the newly built binutils
without setting them since libtool already sets up proper DT_RPATH.


More information about the Gcc mailing list