Date: Wed, 4 Jun 2003 15:50:04 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 32597 for review Message-ID: <200306042250.h54Mo4k4050002@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=32597 Change 32597 by peter@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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306042250.h54Mo4k4050002>