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