From 4a88cacfed91172dec0d0083d1ec5a0706615ae6 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sat, 2 Mar 2002 00:54:17 +0000 Subject: MFC: rev 1.13 (use libgcc_p.a when -pg is in effect) --- gnu/usr.bin/cc/cc_tools/freebsd-native.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gnu/usr.bin') diff --git a/gnu/usr.bin/cc/cc_tools/freebsd-native.h b/gnu/usr.bin/cc/cc_tools/freebsd-native.h index 20094fe97ece..8160d0b5d39c 100644 --- a/gnu/usr.bin/cc/cc_tools/freebsd-native.h +++ b/gnu/usr.bin/cc/cc_tools/freebsd-native.h @@ -50,6 +50,10 @@ #define STANDARD_STARTFILE_PREFIX PREFIX"/lib/" +/* 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 -- cgit v1.3