[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Libtool can't find libgcc_s
From: |
ethan . mallove |
Subject: |
Libtool can't find libgcc_s |
Date: |
Wed, 10 Nov 2010 13:48:14 -0500 |
User-agent: |
Mutt/1.5.14 (2007-03-31) |
Hi,
Libtool seems to get confused about where libgcc_s is, e.g.,
$ /bin/sh ../../../libtool --tag=CXX --mode=link icpc -lgcc_s foo.c -o a.out
libtool: link: icpc foo.c -o a.out -lgcc_s
ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6//libgcc_s.so
when searching for -lgcc_s
ld: cannot find -lgcc_s
If I help it out with my own -L, it works:
$ /bin/sh ../../../libtool --tag=CXX --mode=link icpc
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/32 -lgcc_s foo.c -o a.out
libtool: link: icpc foo.c -o a.out
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/32 -lgcc_s
$ ../../../libtool --version
ltmain.sh (GNU libtool) 2.2.6b
What's going on?
-Ethan
- Libtool can't find libgcc_s,
ethan . mallove <=