diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2003-06-13 22:25:41 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2003-06-13 22:25:41 +0000 |
| commit | a96996a1827d0a6a5c7f7f1aa730e03665ba9231 (patch) | |
| tree | c740315b84d7cde30df306e2b7a8814753a25673 /gnu | |
| parent | 3d23e8b897c0b5ea1fcec78c097523a19fe36ccb (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/cc/cc_tools/freebsd-native.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/freebsd-native.h b/gnu/usr.bin/cc/cc_tools/freebsd-native.h index a102a89a298bf..cde8d89dbd46a 100644 --- a/gnu/usr.bin/cc/cc_tools/freebsd-native.h +++ b/gnu/usr.bin/cc/cc_tools/freebsd-native.h @@ -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" |
