summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorIku <iku@yokattana.com>2017-06-28 15:41:23 +0200
committerIku <iku@yokattana.com>2017-06-28 15:41:23 +0200
commit77be1328f7b536d7913a3dcf1cd5bda1c488db5a (patch)
tree368337a2c4b8490e2d24b755f31a80fbcb62e76c /src/Makefile
parentf783ae4eca54023fcccc649908ce67b48db0401e (diff)
Fix lua check for FreeBSD
PR for the patch that the port applies, see: https://svnweb.freebsd.org/ports/head/math/sc-im/files/patch-Makefile?revision=438936&view=markup
Diffstat (limited to 'src/Makefile')
-rwxr-xr-xsrc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 0335b73..d65226b 100755
--- a/src/Makefile
+++ b/src/Makefile
@@ -99,7 +99,11 @@ endif
ifneq ($(shell pkg-config --exists lua51 || echo 'no'),no)
CFLAGS += -DXLUA $(shell pkg-config --cflags lua51)
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
endif
+
# dynamic linking (should not be used in FreeBSD
ifneq ($(shell uname -s),FreeBSD)
LDLIBS += -ldl