diff options
author | Roger Jungemann <roger@thefifthcircuit.com> | 2018-05-22 13:10:41 -0700 |
---|---|---|
committer | Roger Jungemann <roger@thefifthcircuit.com> | 2018-05-22 13:10:41 -0700 |
commit | 880b25edb4ea72395c0080f03b0890e7c630b3e5 (patch) | |
tree | c590d31c799981bb8619a5f277e0389767f13489 /src/Makefile | |
parent | 65428c04aad478544d0851d960a3d52444a81779 (diff) |
Fix Makefile
Diffstat (limited to 'src/Makefile')
-rwxr-xr-x | src/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 454459f..cf183d2 100755 --- a/src/Makefile +++ b/src/Makefile @@ -122,7 +122,11 @@ ifneq (, $(shell which pkg-config)) LDLIBS += $(shell pkg-config --libs lua51) -Wl,--export-dynamic else ifneq ($(shell pkg-config --exists lua-5.1 || echo 'no'),no) # FreeBSD CFLAGS += -DXLUA $(shell pkg-config --cflags lua-5.1) - LDLIBS += $(shell pkg-config --libs lua-5.1) -Wl,--export-dynamic + ifneq ($(shell uname -s),Darwin) + LDLIBS += $(shell pkg-config --libs lua-5.1) -Wl,--export-dynamic + else + LDLIBS += $(shell pkg-config --libs lua-5.1) -rdynamic + endif endif else ifeq ($(shell uname -s),Darwin) # macOS without pkg-config |