[Bug driver/46563] link with -lgcc when creating a shared lib

mikpe at it dot uu.se gcc-bugzilla@gcc.gnu.org
Fri Nov 19 17:42:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46563

--- Comment #7 from Mikael Pettersson <mikpe at it dot uu.se> 2010-11-19 17:38:35 UTC ---
The example works for me also with a cross built from gcc-4.5.1 with
--enable-shared --enable-languages=c,c++.

> armv5tel-unknown-linux-gnueabi-g++ atomic.cxx -fPIC -shared -o libatomic.so
> armv5tel-unknown-linux-gnueabi-g++ atomain.cxx -o atomain -L. -latomic

'make install' automatically installed the linker script in
$PREFIX/armv5tel-unknown-linux-gnueabi/lib/libgcc_s.so

I don't see "-gnueabi" in your compile command. Is it an OABI toolchain?



More information about the Gcc-bugs mailing list