This commit is contained in:
Arnaud 2025-10-15 15:32:56 +02:00
parent 6d3fbf46ca
commit d2b9dc254c
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -5,7 +5,7 @@ LIBS_DIR := $(abspath ./libs)
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
CGO_CFLAGS := -I$(LIBS_DIR)
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path
else
CGO_CFLAGS := -I$(LIBS_DIR)
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)