Skip to content

Commit cfeeb3f

Browse files
committed
Debug
1 parent 0ed267c commit cfeeb3f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Makefile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
# Destination folder for the downloaded libraries
22
LIBS_DIR := $(abspath ./libs)
33

4-
UNAME_S := $(shell uname -s)
5-
64
# Flags for CGO to find the headers and the shared library
7-
ifeq ($(UNAME_S),Darwin)
8-
CGO_CFLAGS := -I$(LIBS_DIR)
9-
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,@executable_path/libs
10-
else
11-
CGO_CFLAGS := -I$(LIBS_DIR)
12-
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
13-
endif
5+
CGO_CFLAGS := -I$(LIBS_DIR)
6+
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
147

158
ifeq ($(OS),Windows_NT)
169
BIN_NAME := example.exe
@@ -33,7 +26,7 @@ fetch:
3326
unzip -o -qq $(LIBS_DIR)/codex-${OS}-${ARCH}.zip -d $(LIBS_DIR)
3427
rm -f $(LIBS_DIR)/*.zip
3528
ifeq ($(UNAME_S),Darwin)
36-
install_name_tool -id @rpath/libcodex.dylib libs/libcodex.dylib
29+
install_name_tool -id @rpath/libcodex.dylib $(LIBS_DIR)/libcodex.dylib
3730
endif
3831
build:
3932
@echo "CGO_CFLAGS=$(CGO_CFLAGS)"

0 commit comments

Comments
 (0)