[package] fix lua programs by adding missing std=gnu99 cflag
authorFlorian Fainelli <florian@openwrt.org>
Thu, 29 Oct 2009 16:50:46 +0000 (16:50 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 29 Oct 2009 16:50:46 +0000 (16:50 +0000)
SVN-Revision: 18209

lang/luafilesystem/Makefile
lang/luaprofiler/Makefile
lang/luasec/Makefile

index 9f1cb14..50189f4 100644 (file)
@@ -42,7 +42,7 @@ TARGET_LDFLAGS += -llua
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
-               CFLAGS="$(TARGET_CFLAGS)" \
+               CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
                LDFLAGS="$(TARGET_LDFLAGS)"
        $(TARGET_CROSS)ar r $(PKG_BUILD_DIR)/src/liblua-filesystem.a $(PKG_BUILD_DIR)/src/lfs.o
 endef
index 3b81531..1ecc694 100644 (file)
@@ -41,7 +41,7 @@ TARGET_LDFLAGS += -llua
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
-               CFLAGS="$(TARGET_CFLAGS)" \
+               CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
                LDFLAGS="$(TARGET_LDFLAGS)" \
                -f Makefile.linux
 endef
index 1722cce..fb71628 100644 (file)
@@ -37,7 +37,7 @@ define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/src linux \
                INCDIR="$(TARGET_CPPFLAGS)" \
                LIBDIR="$(TARGET_LDFLAGS)" \
-               CC="$(TARGET_CC) $(TARGET_CFLAGS)" \
+               CC="$(TARGET_CC) $(TARGET_CFLAGS) -std=gnu99" \
                LD="$(TARGET_CROSS)ld -shared"
 endef