From: Iain Sandoe Date: Tue, 26 Sep 2023 08:47:46 +0000 (+0100) Subject: Darwin: Handle -dynamiclib on cc1 lines. X-Git-Tag: basepoints/gcc-15~5877 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b18fd28c83ac90bf408389c003ed25d93438210;p=thirdparty%2Fgcc.git Darwin: Handle -dynamiclib on cc1 lines. 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 --- diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 61e46f76b223..2ee66c1a3d14 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -307,7 +307,7 @@ extern GTY(()) int darwin_ms_struct; %:version-compare(>= 10.7 mmacosx-version-min= -no_pie) }" #define DARWIN_CC1_SPEC \ - "%