From 55a17fb331b6f4a11c70794f05b177273672912e Mon Sep 17 00:00:00 2001 From: Andreas Zahnen Date: Sun, 13 Oct 2024 19:46:11 +0200 Subject: [PATCH] fix build --- .github/workflows/libxtracfg.yml | 2 +- libxtracfg/c/build.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/libxtracfg.yml b/.github/workflows/libxtracfg.yml index 1aac1ba..1728fd9 100644 --- a/.github/workflows/libxtracfg.yml +++ b/.github/workflows/libxtracfg.yml @@ -49,7 +49,7 @@ jobs: - name: go working-directory: ./xtracfg env: - CGO_FLAGS: ${{ matrix.os.type == 'macos' && '-framework CoreServices -framework Foundation' || '' }} + LDFLAGS: ${{ matrix.os.type == 'macos' && '-framework CoreServices -framework Foundation' || '' }} run: | go build -o build/xtracfg -v -x - name: log3 diff --git a/libxtracfg/c/build.sh b/libxtracfg/c/build.sh index 73ef967..d177662 100755 --- a/libxtracfg/c/build.sh +++ b/libxtracfg/c/build.sh @@ -35,8 +35,8 @@ echo "test" # static if [ "$PLATFORM" = "darwin" ]; then -#clang -I./ -L./ -Wl,-framework,CoreServices -ldl -lpthread -Wl,-framework,Foundation -o test ../test/main.c ./libxtracfg.a -echo "test temporarily disabled on macOS" +clang -I./ -L./ -Wl,-framework,CoreServices -ldl -lpthread -Wl,-framework,Foundation -o test ../test/main.c ./libxtracfg.a +#echo "test temporarily disabled on macOS" else clang -I./ -L./ -ldl -lpthread -o test ../test/main.c ./libxtracfg.a fi