aboutsummaryrefslogtreecommitdiffstats
path: root/wireguard-go-bridge/Makefile
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-22 17:17:51 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:26 +0530
commit1ca5407b851846ae53abc93df534cfd2eb1dbc5a (patch)
tree3d36f50e53c52c3b5accbeefb0307ad2335e873b /wireguard-go-bridge/Makefile
parentimport Foundation instead of UIKit wherever possible (diff)
downloadwireguard-apple-1ca5407b851846ae53abc93df534cfd2eb1dbc5a.tar.xz
wireguard-apple-1ca5407b851846ae53abc93df534cfd2eb1dbc5a.zip
wireguard-go-bridge: Make CFLAGS_PREFIX work for macOS as well
For macOS, Xcode doesn't set DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX, but does set DEPLOYMENT_TARGET_CLANG_FLAG_NAME. Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'wireguard-go-bridge/Makefile')
-rw-r--r--wireguard-go-bridge/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/wireguard-go-bridge/Makefile b/wireguard-go-bridge/Makefile
index 75b286b..031cf8e 100644
--- a/wireguard-go-bridge/Makefile
+++ b/wireguard-go-bridge/Makefile
@@ -16,7 +16,7 @@ BUILDDIR ?= $(CONFIGURATION_TEMP_DIR)/wireguard-go-bridge
UPSTREAM_FILES := $(filter-out %/main.go %/queueconstants.go,$(wildcard ../wireguard-go/*/*.go) $(wildcard ../wireguard-go/*.go)) ../wireguard-go/go.mod ../wireguard-go/go.sum
DOWNSTREAM_FILES := $(wildcard src/*.go) $(wildcard src/*/*.go)
-CFLAGS_PREFIX := $(DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX)$($(DEPLOYMENT_TARGET_CLANG_ENV_NAME)) -isysroot $(SDKROOT) -arch
+CFLAGS_PREFIX := -$(DEPLOYMENT_TARGET_CLANG_FLAG_NAME)=$($(DEPLOYMENT_TARGET_CLANG_ENV_NAME)) -isysroot $(SDKROOT) -arch
GOARCH_arm64 := arm64
GOARCH_armv7 := arm
GOARCH_x86_64 := amd64