aboutsummaryrefslogtreecommitdiff
path: root/devel/diffutils
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-06-29 10:42:27 +0200
committerJo-Philipp Wich <jow@openwrt.org>2015-06-29 11:39:57 +0200
commitd80ab67b13fc6bb48a60f7b30a736758010f5176 (patch)
tree756f31cc36b7c5346d3b6cbe42351ebe4bf5a5f5 /devel/diffutils
parent371bf3954680bac23a32ead2194c579bdc78f537 (diff)
diffutils: fix fortify source compat
Compile with `-std=gnu99` instead of `-std=c99` to avoid redefining `__attribute__` in `src/system.h`. Fixes the following error spotted by the buildbot: In file included from ../lib/stdio.h:43:0, from cmp.c:22: .../staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.10_eabi/include/fortify/stdio.h: In function 'snprintf': .../staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.10_eabi/include/fortify/stdio.h:99:2: error: invalid use of '__builtin_va_arg_pack ()' return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack()); ^ Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'devel/diffutils')
-rw-r--r--devel/diffutils/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/devel/diffutils/Makefile b/devel/diffutils/Makefile
index b313dafa4..fb00a42d8 100644
--- a/devel/diffutils/Makefile
+++ b/devel/diffutils/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2008-2012 OpenWrt.org
+# Copyright (C) 2008-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=diffutils
PKG_VERSION:=3.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/diffutils
@@ -36,7 +36,7 @@ endef
CONFIGURE_VARS += \
ac_cv_func_mempcpy=n
-TARGET_CFLAGS += --std=c99
+TARGET_CFLAGS += --std=gnu99
define Package/diffutils/install
$(INSTALL_DIR) $(1)/usr/bin