Skip to content

Commit 9e6c211

Browse files
committed
Debugging macos
1 parent 28791f5 commit 9e6c211

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ LIBS_DIR := $(abspath ./libs)
44
UNAME_S := $(shell uname -s)
55

66
# 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
7+
CGO_CFLAGS := -I$(LIBS_DIR)
8+
CGO_LDFLAGS := -L$(LIBS_DIR) -lcodex -Wl,-rpath,$(LIBS_DIR)
149

1510
ifeq ($(OS),Windows_NT)
1611
BIN_NAME := example.exe

0 commit comments

Comments
 (0)