From 274d6fe3f58f7d0511b0c2382fe5354b8905d9be Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 13 Oct 2022 22:54:14 +0100 Subject: [PATCH] Prevent -static-lib{gcc,stdc++} flags from going to winelib stuff Signed-off-by: falkTX --- source/jackbridge/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/jackbridge/Makefile b/source/jackbridge/Makefile index 33a373cb6..d3bf4beb1 100644 --- a/source/jackbridge/Makefile +++ b/source/jackbridge/Makefile @@ -15,7 +15,10 @@ LINK_FLAGS += $(JACKBRIDGE_LIBS) WINE_32BIT_FLAGS = $(32BIT_FLAGS) -fpermissive WINE_64BIT_FLAGS = $(64BIT_FLAGS) -fpermissive -WINE_LINK_FLAGS = $(LINK_FLAGS) $(LIBDL_LIBS) -pthread -lstdc++ +WINE_LINK_FLAGS = $(filter-out -static-libgcc -static-libstdc++,$(LINK_FLAGS)) +WINE_LINK_FLAGS += $(LIBDL_LIBS) +WINE_LINK_FLAGS += -pthread +WINE_LINK_FLAGS += -lstdc++ ifeq ($(JACKBRIDGE_DIRECT),true) BUILD_CXX_FLAGS += $(JACK_FLAGS) -DJACKBRIDGE_DIRECT