summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-04-27 18:57:06 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-04-27 18:57:06 +0000
commited7200230860c1df27843f9017282d0a2ccea9b8 (patch)
tree8fce12f937b3cdf70068e464e88d6f497629810e
parentf330af8debab89a9a9bcefd5209174bf0a48b5c2 (diff)
Support -shared on a.out platforms: pass the right options to ld
(e.g., no start symbol, -x -Bshareable). collect2 should do the rest, wrt ctors/dtors
-rw-r--r--gnu/egcs/gcc/config/openbsd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/config/openbsd.h b/gnu/egcs/gcc/config/openbsd.h
index e95fbdaea0c..f34c87f770a 100644
--- a/gnu/egcs/gcc/config/openbsd.h
+++ b/gnu/egcs/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