[packages] luaexpat: compile with -fPIC
[openwrt/svn-archive/archive.git] / lang / luaexpat / Makefile
index a0dc1c2..ded0229 100644 (file)
@@ -41,7 +41,7 @@ define Build/Compile
        LUA_LIBDIR="$(STAGING_DIR)/usr/lib/" \
        COMPAT_DIR="$(PKG_BUILD_DIR)/compat-5.1r5" \
        LIB_OPTION="-shared $(TARGET_LDFLAGS)" \
-       CC="$(TARGET_CC) $(TARGET_CFLAGS) -std=c99" \
+       CC="$(TARGET_CC) $(TARGET_CFLAGS) $(FPIC) -std=c99" \
        LD="$(TARGET_CROSS)ld -shared" 
 endef