Permalink
Browse files

Use LUA_CFLAGS and LUA_LIBS instead of hardcoded paths.

  • Loading branch information...
1 parent 2bdd03b commit bef300012be401eb224171d5dbf7aa61ea8229ce @dev-zero dev-zero committed with Habbie May 20, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 modules/luabackend/Makefile.am
@@ -1,4 +1,4 @@
-AM_CPPFLAGS=-I/usr/include/lua5.1 @THREADFLAGS@
+AM_CPPFLAGS=$(LUA_CFLAGS) @THREADFLAGS@
#AM_CPPFLAGS=-I/usr/local/include/luajit-2.0 -DUSE_LUAJIT @THREADFLAGS@
EXTRA_DIST=OBJECTFILES OBJECTLIBS
@@ -8,5 +8,6 @@ lib_LTLIBRARIES = libluabackend.la
libluabackend_la_SOURCES=luabackend.cc luabackend.hh minimal.cc reload.cc lua_functions.cc master.cc private.cc slave.cc supermaster.cc dnssec.cc \
lua_functions.hh
-libluabackend_la_LDFLAGS=-module -avoid-version -llua5.1
+libluabackend_la_LDFLAGS=-module -avoid-version
+libluabackend_la_LIBADD=$(LUA_LIBS)
#-lluajit-5.1

0 comments on commit bef3000

Please sign in to comment.