16 Jul 2011 04:58
bug#9095: libtool is picking the wrong path for dependent libraries
Roger Nichols <rnichols <at> mc.com>
2011-07-16 02:58:26 GMT
2011-07-16 02:58:26 GMT
hi,
i dont know if i have a bug, or user error. i am cross compiling
openhpi (and openipmi) into a root file system. the libtool command
does not have the build host system's libraries in the -L arguments,
yet the libraries are explicitly pathed to the build host's versions.
even if i use --with-openipmi=/path/to/openipmi, since the libs are
added to the link line with -L -l -l, libtool seems to search for the
libs and explicitly path them. is this a bug? or how do i get libtool
to use the cross compiled libraries?
here is the libtool command, and the resultant link line. (the spacing
is mine so i could see what was happening. the output's order _is_
preserved.)
thanks for your help
--roger
/bin/sh ../../libtool --tag=CC --mode=link
/opt/timesys/toolchains/ppc86xx-linux/bin/ppc86xx-linux-gcc
-m32 -mhard-float -mmultiple -mno-string -mcpu=7450 -O0 -D_REENTRANT
-I/opt/timesys/toolchains/ppc86xx-linux/powerpc-timesys-linux-gnu/include/glib-2.0
-I/opt/timesys/toolchains/ppc86xx-linux/powerpc-timesys-linux-gnu/lib/glib-2.0/include
-Wall -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes -Wpointer-arith -Wformat=2 -Wformat-security
-Wformat-nonliteral -Wno-format-y2k -Wcast-qual -Wcast-align
-Wno-strict-aliasing -Wno-unused-value -Werror
-D_GNU_SOURCE -D_REENTRANT -fexceptions
-I/opt/timesys/toolchains/ppc86xx-linux/powerpc-timesys-linux-gnu/include
-m32 -mhard-float -mmultiple -mno-string -mcpu=7450 -O0 -D_REENTRANT
(Continue reading)
RSS Feed