X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=lua%2FMakefile;h=9b6e72839aed97c46f3c3286e1787fbe530b1604;hp=9cc6c397696aa10452cc75a0ff41e07ebeac3576;hb=23fa73926e0871e49b15bcf9c2a87a76bc8da087;hpb=3da86cbf987461afc1c798f1addf8a1c4bdafcbb diff --git a/lua/Makefile b/lua/Makefile index 9cc6c39..9b6e728 100644 --- a/lua/Makefile +++ b/lua/Makefile @@ -1,7 +1,7 @@ include ../Makefile.inc -CPPFLAGS=-I.. -LIBS=-L.. -luci +CPPFLAGS=-I.. $(shell pkg-config --silence-errors --cflags lua5.1) +LIBS=-L.. -luci $(shell pkg-config --silence-errors --libs lua5.1) PLUGIN_LD=$(CC) ifeq ($(OS),Darwin) @@ -16,7 +16,7 @@ uci.so: uci.o $(PLUGIN_LD) $(PLUGIN_LDFLAGS) -o $@ $^ $(LIBS) %.o: %.c - $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) $(FPIC) -c -o $@ $< install: mkdir -p $(DESTDIR)$(prefix)/lib/lua/5.1