From 4e912fba3daa9724c7e67c2c07fa2dbf47e62e09 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Thu, 30 May 2024 17:07:34 +0200 Subject: [PATCH] fix needed linker flags for vst3/macos with gui --- templates/vst3-make/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/vst3-make/Makefile b/templates/vst3-make/Makefile index 473c8a1..7dc97c2 100644 --- a/templates/vst3-make/Makefile +++ b/templates/vst3-make/Makefile @@ -63,6 +63,9 @@ ifeq ($(UNAME_S), Darwin) CFLAGS_ALL := ${CFLAGS_ALL} -arch arm64 -arch x86_64 LDFLAGS_ALL := ${LDFLAGS_ALL} -arch arm64 -arch x86_64 CXXFLAGS_ALL := ${CXXFLAGS_ALL} -arch arm64 -arch x86_64 + ifeq (${HAS_UI}, yes) +LDFLAGS_ALL := ${LDFLAGS_ALL} -Wl,-framework,Foundation -Wl,-framework,Cocoa -Wl,-framework,Corevideo + endif endif ifeq ($(UNAME_S), Linux)