Set rpath in tools

This commit is contained in:
K. Lange 2022-07-04 07:50:53 +09:00
parent fe4fd1af78
commit 5d77dec70e

View File

@ -28,6 +28,8 @@ ifeq (,$(findstring mingw,$(CC)))
LIBRARY = libkuroko.so
ifeq (Darwin,$(shell uname -s))
MODLIBS += -undefined dynamic_lookup -DKRK_MEDIOCRE_TLS
else
${TOOLS}: LDFLAGS += -Wl,-rpath,$$ORIGIN
endif
else
CFLAGS += -Wno-format -static-libgcc -pthread