summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-11-10 16:54:45 +0000
committerobrien <obrien@FreeBSD.org>2000-11-10 16:54:45 +0000
commitf47f799a769cc98b4246b011826ead3c815c4a7a (patch)
tree95770245e2f9aa6dd1aa50d23240793019fc66a7 /gnu
parent647fe1965bb5e7693aecfd44cecc94a292c9b6a1 (diff)
downloadFreeBSD-src-f47f799a769cc98b4246b011826ead3c815c4a7a.zip
FreeBSD-src-f47f799a769cc98b4246b011826ead3c815c4a7a.tar.gz
Link with libgcc_pic when building shared objects.
(note we should not just use GCC's default LIBGCC_SPEC as it doesn't use the PIC version when linking shared) Recomended by: jdp PR: 21983
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/cc_tools/freebsd-native.h5
1 files changed, 4 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 ac5c681..6fd158c 100644
--- a/gnu/usr.bin/cc/cc_tools/freebsd-native.h
+++ b/gnu/usr.bin/cc/cc_tools/freebsd-native.h
@@ -52,4 +52,7 @@
#define LIBGCC_SPEC \
"%{!shared: \
%{!pthread:libgcc.a%s} \
- %{pthread:libgcc_r.a%s}}"
+ %{pthread:libgcc_r.a%s}} \
+ %{shared: \
+ %{!pthread:libgcc_pic.a%s} \
+ %{pthread:libgcc_r_pic.a%s}}"
OpenPOWER on IntegriCloud