aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-05-05 16:30:23 +0000
committerJeff Law <law@gcc.gnu.org>2000-05-05 10:30:23 -0600
commit6a0177c5b91a988932e59202c4f2e0949cd4b019 (patch)
treeabedb9a719edf944c93edd09339e245dfcd56974 /gcc/config
parentbe3dad6f751f1dfa18c0a58395646179bec42dd0 (diff)
downloadgcc-6a0177c5b91a988932e59202c4f2e0949cd4b019.zip
gcc-6a0177c5b91a988932e59202c4f2e0949cd4b019.tar.gz
gcc-6a0177c5b91a988932e59202c4f2e0949cd4b019.tar.bz2
openbsd.h (LINK_SPEC): pass correct flags to ld to support -shared, on platforms with dynamic libraries.
* config/openbsd.h (LINK_SPEC): pass correct flags to ld to support -shared, on platforms with dynamic libraries. From-SVN: r33711
Diffstat (limited to 'gcc/config')
-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 1d813dd..bcf5ff2 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