]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Darwin: Handle -dynamiclib on cc1 lines.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 26 Sep 2023 08:47:46 +0000 (09:47 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 27 Apr 2024 16:07:26 +0000 (17:07 +0100)
The changes of r14-4172 missed a case where we accept -dynamiclib on the
command line and then pass it to cc1 (which does not accept it).

This prunes the -dynamiclib from cc1 lines.

gcc/ChangeLog:

* config/darwin.h (DARWIN_CC1_SPEC): Remove -dynamiclib.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
(cherry picked from commit 3b18fd28c83ac90bf408389c003ed25d93438210)

gcc/config/darwin.h

index 430f12662e97aab9fca42fdeecc499b86de4025b..ef598f10c90be66bf27859007ba0772c5942c01f 100644 (file)
@@ -288,7 +288,7 @@ extern GTY(()) int darwin_ms_struct;
    %:version-compare(>= 10.7 mmacosx-version-min= -no_pie) }"
 
 #define DARWIN_CC1_SPEC                                                        \
-  "%<dynamic %<force_cpusubtype_ALL %<multiply_defined* "
+  "%<dynamic %<force_cpusubtype_ALL %<multiply_defined* %<dynamiclib"
 
 #define SUBSUBTARGET_OVERRIDE_OPTIONS                                  \
   do {                                                                 \