From 68b14ef1b57500966d7e070cefebcd559acc202a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 13 Apr 2008 15:43:14 +0200 Subject: [PATCH] compile fixes for native compilation --- lua/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.41.1