From c6c0d9456c4905a8bb762f854d8876555ef31b71 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Wed, 3 Jul 2013 17:23:55 +0000 Subject: [PATCH] trace-cmd: remove the compile fix patch And instead override TARGET_CFLAGS to set _GNU_SOURCE accordingly since this is the upstream maintainer solution. Signed-off-by: Florian Fainelli SVN-Revision: 37152 --- package/devel/trace-cmd/Makefile | 2 +- .../trace-cmd/patches/100-compile_fix.patch | 20 ------------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 package/devel/trace-cmd/patches/100-compile_fix.patch diff --git a/package/devel/trace-cmd/Makefile b/package/devel/trace-cmd/Makefile index 5263841aac0..f7c211f0c92 100644 --- a/package/devel/trace-cmd/Makefile +++ b/package/devel/trace-cmd/Makefile @@ -37,7 +37,7 @@ MAKE_FLAGS += \ PLUGINS_DIR := $(PKG_INSTALL_DIR)/usr/lib/trace-cmd/plugins PLUGINS_MAIN := function hrtimer mac80211 sched_switch -TARGET_CFLAGS += --std=gnu99 +TARGET_CFLAGS += --std=gnu99 -D_GNU_SOURCE define Package/trace-cmd/install $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/trace-cmd/plugins diff --git a/package/devel/trace-cmd/patches/100-compile_fix.patch b/package/devel/trace-cmd/patches/100-compile_fix.patch deleted file mode 100644 index d0f34f93ffd..00000000000 --- a/package/devel/trace-cmd/patches/100-compile_fix.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/trace-listen.c -+++ b/trace-listen.c -@@ -17,6 +17,7 @@ - * - * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - */ -+#define _GNU_SOURCE - #define _LARGEFILE64_SOURCE - #include - #include ---- a/trace-record.c -+++ b/trace-record.c -@@ -17,6 +17,7 @@ - * - * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - */ -+#define _GNU_SOURCE - #include - #include - #include -- 2.30.2