From: Felix Fietkau Date: Sun, 13 Apr 2008 13:43:14 +0000 (+0200) Subject: compile fixes for native compilation X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=68b14ef1b57500966d7e070cefebcd559acc202a;p=uci.git compile fixes for native compilation --- diff --git a/lua/Makefile b/lua/Makefile index 9cc6c39..76b936d 100644 --- a/lua/Makefile +++ b/lua/Makefile @@ -1,6 +1,6 @@ include ../Makefile.inc -CPPFLAGS=-I.. +CPPFLAGS=-I.. $(shell pkg-config --silence-errors --cflags lua5.1) LIBS=-L.. -luci PLUGIN_LD=$(CC) @@ -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