From 24cec83cc95cf248fc10804129e649ffaeccf788 Mon Sep 17 00:00:00 2001
From: Geoffrey Keating <geoffk@apple.com>
Date: Thu, 30 Mar 2006 23:46:32 +0000
Subject: [PATCH] darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
 !Zdynamiclib.

	* config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
	!Zdynamiclib.

From-SVN: r112549
---
 gcc/ChangeLog       | 5 +++++
 gcc/config/darwin.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0ec4cacc6188..c38801f7046f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-30  Geoffrey Keating  <geoffk@apple.com>
+
+	* config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
+	!Zdynamiclib.
+
 2006-03-30  Carlos O'Donell  <carlos@codesourcery.com>
 
 	* Makefile.in: Rename docdir to gcc_docdir.
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index eef5e4513111..21ed7da0b9ea 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -205,7 +205,7 @@ Boston, MA 02110-1301, USA.  */
     %l %X %{d} %{s} %{t} %{Z} \
     %{!Zdynamiclib:%{A} %{e*} %{m} %{N} %{n} %{r} %{u*} %{x} %{z}} \
     %{@:-o %f%u.out}%{!@:%{o*}%{!o:-o a.out}} \
-    %{!Zdynamiclib:%{!A:%{!nostdlib:%{!nostartfiles:%S}}}} \
+    %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \
     %{L*} %{fopenmp:%:include(libgomp.spec)%(link_gomp)}   \
     %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov} \
     %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \
-- 
GitLab