[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
This commit is contained in:
florian 2009-10-29 16:50:46 +00:00
parent cba950b028
commit abeef72849
3 changed files with 3 additions and 3 deletions

View 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

View 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

View 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