From abeef72849618dbd2cd71fe5fbf4462ab1767fce Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 29 Oct 2009 16:50:46 +0000 Subject: [PATCH] [package] fix lua programs by adding missing std=gnu99 cflag git-svn-id: svn://svn.openwrt.org/openwrt/packages@18209 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- lang/luafilesystem/Makefile | 2 +- lang/luaprofiler/Makefile | 2 +- lang/luasec/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/luafilesystem/Makefile b/lang/luafilesystem/Makefile index 9f1cb1495..50189f498 100644 --- a/lang/luafilesystem/Makefile +++ b/lang/luafilesystem/Makefile @@ -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 diff --git a/lang/luaprofiler/Makefile b/lang/luaprofiler/Makefile index 3b815315d..1ecc69447 100644 --- a/lang/luaprofiler/Makefile +++ b/lang/luaprofiler/Makefile @@ -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 diff --git a/lang/luasec/Makefile b/lang/luasec/Makefile index 1722cceb0..fb71628e4 100644 --- a/lang/luasec/Makefile +++ b/lang/luasec/Makefile @@ -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