PERFORCE change 32597 for review
Peter Wemm
peter at FreeBSD.org
Wed Jun 4 15:50:07 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=32597
Change 32597 by peter at peter_hammer on 2003/06/04 15:49:05
use -lgcc_pic when building shlibs
Affected files ...
.. //depot/projects/hammer/gnu/usr.bin/cc/cc_tools/freebsd-native.h#2 edit
Differences ...
==== //depot/projects/hammer/gnu/usr.bin/cc/cc_tools/freebsd-native.h#2 (text+ko) ====
@@ -48,7 +48,8 @@
/* For the native system compiler, we actually build libgcc in a profiled
version. So we should use it with -pg. */
-#define LIBGCC_SPEC "%{!pg: -lgcc} %{pg: -lgcc_p}"
+#define LIBGCC_SPEC "%{shared: -lgcc_pic} \
+ %{!shared: %{!pg: -lgcc} %{pg: -lgcc_p}}"
#define LIBSTDCXX_PROFILE "-lstdc++_p"
#define MATH_LIBRARY_PROFILE "-lm_p"
#define FORTRAN_LIBRARY_PROFILE "-lg2c_p"
More information about the p4-projects
mailing list