[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:
parent
cba950b028
commit
abeef72849
@ -42,7 +42,7 @@ TARGET_LDFLAGS += -llua
|
|||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS)"
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
||||||
$(TARGET_CROSS)ar r $(PKG_BUILD_DIR)/src/liblua-filesystem.a $(PKG_BUILD_DIR)/src/lfs.o
|
$(TARGET_CROSS)ar r $(PKG_BUILD_DIR)/src/liblua-filesystem.a $(PKG_BUILD_DIR)/src/lfs.o
|
||||||
endef
|
endef
|
||||||
|
@ -41,7 +41,7 @@ TARGET_LDFLAGS += -llua
|
|||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
-f Makefile.linux
|
-f Makefile.linux
|
||||||
endef
|
endef
|
||||||
|
@ -37,7 +37,7 @@ define Build/Compile
|
|||||||
$(MAKE) -C $(PKG_BUILD_DIR)/src linux \
|
$(MAKE) -C $(PKG_BUILD_DIR)/src linux \
|
||||||
INCDIR="$(TARGET_CPPFLAGS)" \
|
INCDIR="$(TARGET_CPPFLAGS)" \
|
||||||
LIBDIR="$(TARGET_LDFLAGS)" \
|
LIBDIR="$(TARGET_LDFLAGS)" \
|
||||||
CC="$(TARGET_CC) $(TARGET_CFLAGS)" \
|
CC="$(TARGET_CC) $(TARGET_CFLAGS) -std=gnu99" \
|
||||||
LD="$(TARGET_CROSS)ld -shared"
|
LD="$(TARGET_CROSS)ld -shared"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user