cvs commit: src/gnu/usr.bin/cc/cc_tools freebsd-native.h
Peter Wemm
peter at FreeBSD.org
Fri Jun 13 15:25:42 PDT 2003
peter 2003/06/13 15:25:41 PDT
FreeBSD src repository
Modified files:
gnu/usr.bin/cc/cc_tools freebsd-native.h
Log:
When building a shared library, link it against libgcc_pic.a instead of the
non-PIC libgcc.a. Linking non-pic code into a shared library is not
a good thing. It happens to break amd64 at compile time, and the ppc
folks want it too. The problem is mainly with C++ code, unwind-dw2.c
in particular. Most of the other functions in libgcc.a are self
contained so most of the time it isn't a problem. The dwarf2 unwinder
is not safe though since it does make global variable references.
Reviewed by: kan
Revision Changes Path
1.22 +2 -1 src/gnu/usr.bin/cc/cc_tools/freebsd-native.h
More information about the cvs-src
mailing list