summaryrefslogtreecommitdiffstats
path: root/gcc/config/openbsd.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-05 16:30:23 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-05 16:30:23 +0000
commit9293016f187b621b4663fe9d3de420093c4753b6 (patch)
treeabedb9a719edf944c93edd09339e245dfcd56974 /gcc/config/openbsd.h
parent20a6e8425ce364ff31991faed036897c60579347 (diff)
downloadppe42-gcc-9293016f187b621b4663fe9d3de420093c4753b6.tar.gz
ppe42-gcc-9293016f187b621b4663fe9d3de420093c4753b6.zip
* config/openbsd.h (LINK_SPEC): pass correct flags to ld
to support -shared, on platforms with dynamic libraries. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33711 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/openbsd.h')
-rw-r--r--gcc/config/openbsd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/openbsd.h b/gcc/config/openbsd.h
index 1d813ddbda6..bcf5ff262f0 100644
--- a/gcc/config/openbsd.h
+++ b/gcc/config/openbsd.h
@@ -119,7 +119,7 @@ Boston, MA 02111-1307, USA. */
"%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{assert*}"
#else
#define LINK_SPEC \
- "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{R*} %{static:-Bstatic} %{assert*}"
+ "%{!shared:%{!nostdlib:%{!r*:%{!e*:-e start}}}} %{shared:-Bshareable -x} -dc -dp %{R*} %{static:-Bstatic} %{assert*}"
#endif
#undef LIB_SPEC
OpenPOWER on IntegriCloud