diff options
author | obrien <obrien@FreeBSD.org> | 2002-02-24 06:05:22 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-02-24 06:05:22 +0000 |
commit | a5b1c0acfab53c8ce8be4aa4f21f96897da06fec (patch) | |
tree | f6847689cf9b3a1576bdd9c23a089705358cb548 /gnu/usr.bin | |
parent | 39961710099c70d1e942079f61769754bb852912 (diff) | |
download | FreeBSD-src-a5b1c0acfab53c8ce8be4aa4f21f96897da06fec.zip FreeBSD-src-a5b1c0acfab53c8ce8be4aa4f21f96897da06fec.tar.gz |
Use libgcc_p.a when -pg is in effect.
I am committing this here rather than in gcc/config/freebsd.h because the
profiled libgcc only exists with the native system compiler. It is not
created by a stock FSF build and we will never be able to get these bits
committed to the FSF CVS repo. Thus this is very much a FreeBSD "native"
issue.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/cc/cc_tools/freebsd-native.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/freebsd-native.h b/gnu/usr.bin/cc/cc_tools/freebsd-native.h index ff6296b..e8e6306 100644 --- a/gnu/usr.bin/cc/cc_tools/freebsd-native.h +++ b/gnu/usr.bin/cc/cc_tools/freebsd-native.h @@ -41,5 +41,9 @@ #define CROSS_STARTFILE_PREFIX PREFIX"/lib/" #endif +/* 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}" + /* FreeBSD is 4.4BSD derived */ #define bsd4_4 |