From 1f761f221351d2c22bee3a56a8b5a5987ee31e95 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Wed, 5 Jun 2024 10:07:48 -0700 Subject: [PATCH] update package_macos to pass C flags --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 069f952..fc7ca9e 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ build: # so the last 3 cmds move it over manually. This is a bit fragile though # since it assumes a specific location and version of the dependency package_macos: - fyne package -os darwin -name $(app_name) -appVersion $(app_version) -icon $(icon_path) + CGO_CFLAGS="-I/usr/local/include -I/opt/homebrew/include" CGO_LDFLAGS="-L/usr/local/lib -L/opt/homebrew/lib" fyne package -os darwin -name $(app_name) -appVersion $(app_version) -icon $(icon_path) bundledeps_macos_homebrew: dylibbundler -od -b -x ./Supersonic.app/Contents/MacOS/supersonic -d ./Supersonic.app/Contents/Frameworks/ -p @executable_path/../Frameworks/