From fe22907a1bb0cd0b054f739eece19e19f3f6093f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 27 Oct 2009 23:43:23 +0000 Subject: [PATCH] [packages] luaexpat: fix compile error triggered by cs toolchain SVN-Revision: 18192 --- lang/luaexpat/Makefile | 4 ++-- lang/luaexpat/patches/001-compile-fix.patch | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 lang/luaexpat/patches/001-compile-fix.patch diff --git a/lang/luaexpat/Makefile b/lang/luaexpat/Makefile index 05dd6573e1..a0dc1c2612 100644 --- a/lang/luaexpat/Makefile +++ b/lang/luaexpat/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luaexpat PKG_VERSION:=1.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/2469 @@ -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)" \ + CC="$(TARGET_CC) $(TARGET_CFLAGS) -std=c99" \ LD="$(TARGET_CROSS)ld -shared" endef diff --git a/lang/luaexpat/patches/001-compile-fix.patch b/lang/luaexpat/patches/001-compile-fix.patch new file mode 100644 index 0000000000..c2e863a7e8 --- /dev/null +++ b/lang/luaexpat/patches/001-compile-fix.patch @@ -0,0 +1,10 @@ +--- a/config ++++ b/config +@@ -31,6 +31,6 @@ + -Wshadow \ + -Wwrite-strings + +-CFLAGS = $(CWARNS) -ansi -O2 -I$(LUA_INC) \ ++CFLAGS = $(CWARNS) -O2 -I$(LUA_INC) \ + -I$(COMPAT_DIR) -I$(EXPAT_INC) + CC = gcc -- 2.30.2