diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-01-25 16:07:23 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-01-25 16:07:23 +0200 |
commit | fa2a0367f26d5aca03fbfc360d987b49c816d9c4 (patch) | |
tree | 85b108f0e2aacce4c158e05eaa6a2ed3036439c7 /src/Makefile | |
parent | 75af33433f3ffbe25c81960d8d1888be7ce35418 (diff) | |
download | squark-fa2a0367f26d5aca03fbfc360d987b49c816d9c4.tar.bz2 squark-fa2a0367f26d5aca03fbfc360d987b49c816d9c4.tar.xz |
build: fix lua module building, and disable -Werror
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index eb24877..d7df654 100644 --- a/src/Makefile +++ b/src/Makefile @@ -14,10 +14,12 @@ CFLAGS_config.o += -DSQUARK_VERSION=\"$(FULL_VERSION)\" \ -DLIBDIR=\"$(LIBDIR)\" LIBS += -lrt -CFLAGS_lua-squarkdb.o += $(shell pkg-config --cflags lua5.1) +PKG_LUA ?= lua5.1 + +CFLAGS_lua-squarkdb.o += $(shell pkg-config --cflags $(PKG_LUA)) LIBS_squark-filter += $(shell pkg-config --libs cmph) LIBS_squark-auth-snmp += $(shell net-snmp-config --libs) -LIBS_squarkdb.so += $(shell pkg-config --libs lua5.1) +LIBS_squarkdb.so += $(shell pkg-config --libs $(PKG_LUA) cmph) install: $(INSTALLDIR) $(DESTDIR)$(BINDIR) |