summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/config/alpha/osf12.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/alpha/osf12.h b/gcc/config/alpha/osf12.h
index 135525e9606..9a751ca4e84 100644
--- a/gcc/config/alpha/osf12.h
+++ b/gcc/config/alpha/osf12.h
@@ -26,4 +26,5 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef LINK_SPEC
#define LINK_SPEC \
- "-G 8 -O1 %{static:-non_shared} %{!static:-call_shared} -init __main"
+ "-G 8 -O1 %{!shared:-init __main} %{static:-non_shared}
+ %{!static:%{shared:-shared} %{!shared:-call_shared}}"