From 1fa8c364e9f8579a6a219015a9724b930b1663a6 Mon Sep 17 00:00:00 2001 From: jperkin Date: Wed, 13 Dec 2017 15:15:45 +0000 Subject: libcares: Don't strip out user-supplied debug flags. --- net/libcares/distinfo | 3 ++- net/libcares/patches/patch-m4_cares-compilers.m4 | 34 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 net/libcares/patches/patch-m4_cares-compilers.m4 diff --git a/net/libcares/distinfo b/net/libcares/distinfo index 1827527cb2f..e24f1e52b31 100644 --- a/net/libcares/distinfo +++ b/net/libcares/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.14 2017/07/15 17:15:16 wiz Exp $ +$NetBSD: distinfo,v 1.15 2017/12/13 15:15:45 jperkin Exp $ SHA1 (c-ares-1.13.0.tar.gz) = dde50284cc3d505fb2463ff6276e61d5531b1d68 RMD160 (c-ares-1.13.0.tar.gz) = 97f312aa01d41f381c97ad30a07fbbfdf043f9ea @@ -6,4 +6,5 @@ SHA512 (c-ares-1.13.0.tar.gz) = 4a7942e754673f5b8d55a7471e31b0f390e8324b14c12077 Size (c-ares-1.13.0.tar.gz) = 1446797 bytes SHA1 (patch-Makefile.am) = aef2a0e1975aadab33e647752fd44e30fbfb568a SHA1 (patch-configure.ac) = 0327491be4565b5121811d42288bd1d79b7c1241 +SHA1 (patch-m4_cares-compilers.m4) = 3a5cf27d33ebb7803eab873c6adfc6a70fa4a782 SHA1 (patch-m4_xc-cc-check.m4) = b979d60f1ecb5008b145ade55281c6e2a59be613 diff --git a/net/libcares/patches/patch-m4_cares-compilers.m4 b/net/libcares/patches/patch-m4_cares-compilers.m4 new file mode 100644 index 00000000000..e8df1581dd8 --- /dev/null +++ b/net/libcares/patches/patch-m4_cares-compilers.m4 @@ -0,0 +1,34 @@ +$NetBSD: patch-m4_cares-compilers.m4,v 1.1 2017/12/13 15:15:45 jperkin Exp $ + +Don't strip out user-supplied debug flags. + +--- m4/cares-compilers.m4.orig 2016-01-23 22:41:55.000000000 +0000 ++++ m4/cares-compilers.m4 +@@ -722,13 +722,6 @@ AC_DEFUN([CARES_SET_COMPILER_DEBUG_OPTS] + tmp_options="$flags_dbg_off" + fi + # +- if test "$flags_prefer_cppflags" = "yes"; then +- CPPFLAGS="$tmp_CPPFLAGS $tmp_options" +- CFLAGS="$tmp_CFLAGS" +- else +- CPPFLAGS="$tmp_CPPFLAGS" +- CFLAGS="$tmp_CFLAGS $tmp_options" +- fi + squeeze CPPFLAGS + squeeze CFLAGS + CARES_COMPILER_WORKS_IFELSE([ +@@ -803,13 +796,6 @@ AC_DEFUN([CARES_SET_COMPILER_OPTIMIZE_OP + AC_MSG_CHECKING([if compiler accepts optimizer disabling options]) + tmp_options="$flags_opt_off" + fi +- if test "$flags_prefer_cppflags" = "yes"; then +- CPPFLAGS="$tmp_CPPFLAGS $tmp_options" +- CFLAGS="$tmp_CFLAGS" +- else +- CPPFLAGS="$tmp_CPPFLAGS" +- CFLAGS="$tmp_CFLAGS $tmp_options" +- fi + squeeze CPPFLAGS + squeeze CFLAGS + CARES_COMPILER_WORKS_IFELSE([ -- cgit v1.2.3