This commit is contained in:
Arnaud 2025-10-15 18:51:39 +02:00
parent eb164349eb
commit c2b1d2036c
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F
2 changed files with 13 additions and 13 deletions

View File

@ -10,25 +10,25 @@ jobs:
strategy:
matrix:
target:
- os: ubuntu-latest
name: linux
cpu: amd64
lib_ext: so
# - os: ubuntu-latest
# name: linux
# cpu: amd64
# lib_ext: so
- os: ubuntu-24.04-arm
cpu: arm64
name: linux
lib_ext: so
# - os: ubuntu-24.04-arm
# cpu: arm64
# name: linux
# lib_ext: so
- os: macos-latest
lib_ext: so
name: macos
cpu: arm64
- os: windows-latest
cpu: amd64
name: windows
lib_ext: dll
# - os: windows-latest
# cpu: amd64
# name: windows
# lib_ext: dll
steps:
- name: Check out sources

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,@executable_path
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/libs/libcodex.dylib
else
CGO_CFLAGS := -I$(LIBS_DIR)
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)