[OpenWrt-Devel] [PATCH] valgrind: enable LTO and refresh patches

Syrone Wong wong.syrone at gmail.com
Fri Nov 23 21:00:46 EST 2018


Signed-off-by: Syrone Wong <wong.syrone at gmail.com>
---
 package/devel/valgrind/Makefile                                 | 1 +
 package/devel/valgrind/patches/100-fix_configure_check.patch    | 2 +-
 package/devel/valgrind/patches/130-fix_arm_arch_detection.patch | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/devel/valgrind/Makefile b/package/devel/valgrind/Makefile
index d3844c2388..a670ba51b5 100644
--- a/package/devel/valgrind/Makefile
+++ b/package/devel/valgrind/Makefile
@@ -105,6 +105,7 @@ CONFIGURE_ARGS += \
 	--disable-valgrindtk \
 	--without-included-gettext \
 	--with-pagesize=4 \
+	--enable-lto
 
 define Package/valgrind/install	
 	$(INSTALL_DIR) $(1)/usr/bin
diff --git a/package/devel/valgrind/patches/100-fix_configure_check.patch b/package/devel/valgrind/patches/100-fix_configure_check.patch
index 6ba5fdf1d7..270181ae37 100644
--- a/package/devel/valgrind/patches/100-fix_configure_check.patch
+++ b/package/devel/valgrind/patches/100-fix_configure_check.patch
@@ -1,6 +1,6 @@
 --- a/configure.ac
 +++ b/configure.ac
-@@ -323,7 +323,7 @@ case "${host_os}" in
+@@ -341,7 +341,7 @@ case "${host_os}" in
          # Ok, this is linux. Check the kernel version
          AC_MSG_CHECKING([for the kernel version])
  
diff --git a/package/devel/valgrind/patches/130-fix_arm_arch_detection.patch b/package/devel/valgrind/patches/130-fix_arm_arch_detection.patch
index c8d203390c..26291f777b 100644
--- a/package/devel/valgrind/patches/130-fix_arm_arch_detection.patch
+++ b/package/devel/valgrind/patches/130-fix_arm_arch_detection.patch
@@ -6,7 +6,7 @@ Last-Update: 2013-11-30
 
 --- a/configure.ac
 +++ b/configure.ac
-@@ -234,7 +234,7 @@ case "${host_cpu}" in
+@@ -252,7 +252,7 @@ case "${host_cpu}" in
          ARCH_MAX="s390x"
          ;;
  
-- 
2.19.2


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list