From a68f243ec78b96bce9f10ad4c2c86c1b2e6015b7 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Tue, 26 Sep 2023 09:47:46 +0100 Subject: [PATCH] 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 (cherry picked from commit 3b18fd28c83ac90bf408389c003ed25d93438210) --- gcc/config/darwin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 430f12662e97..ef598f10c90b 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -288,7 +288,7 @@ extern GTY(()) int darwin_ms_struct; %:version-compare(>= 10.7 mmacosx-version-min= -no_pie) }" #define DARWIN_CC1_SPEC \ - "%