This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
can not set linker options for crossplatform build on libstdc++
- From: Bernd Roesch <nospamname at gmx dot de>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 17 Oct 2008 20:16:07 +0200
- Subject: can not set linker options for crossplatform build on libstdc++
Hello
On 17.10.08, you wrote:
i build under cygwin with other host and target a libstdc++ for gcc4.3.2
I set in the configure file the linker options here
line 5682
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
m68k-*-amigaos*)
LD="${LD-ld} -noixemul"
;;
ia64-*-hpux*)
# Find out which ABI we are using.
echo 'int i;' > conftest.$ac_ext
i
....
but the option is not recognize, only later in config.log they are listet.so
my code seem work, but not on needed place
Where i must add the linker options ?.
when i add crt0.o file then this help too not, there are other files need
here is log snippet that show problem
configure:2817: $? = 1
configure:2836: /bernd/obj_68k_4/./gcc/xgcc -B/bernd/obj_68k_4/./gcc/
-B/usr/local/amiga/m68k-amigaos/bin/ -B/usr/local/amiga/m68k-amigaos/lib/
-isystem /usr/local/amiga/m68k-amigaos/include -isystem
/usr/local/amiga/m68k-amigaos/sys-include -o conftest -O2 -g -O2
conftest.c >&5
/usr/local/amiga/m68k-amigaos/bin/ld: cannot open crt0.o: No such file or
directory
collect2: ld returned 1 exit status
the output in config.log show that the data is recognize
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LD='/bernd/obj_68k_4/./gcc/collect-ld -noixemul'
LDFLAGS=''
Regards