diff options
author | jperkin <jperkin@pkgsrc.org> | 2017-12-13 15:15:45 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2017-12-13 15:15:45 +0000 |
commit | 1fa8c364e9f8579a6a219015a9724b930b1663a6 (patch) | |
tree | e728e0ba6dc91dc5230373206f446ba5ddcb42fb | |
parent | f0e359690d376d5140f0a82899b61f394e2552ad (diff) | |
download | pkgsrc-1fa8c364e9f8579a6a219015a9724b930b1663a6.tar.gz |
libcares: Don't strip out user-supplied debug flags.
-rw-r--r-- | net/libcares/distinfo | 3 | ||||
-rw-r--r-- | net/libcares/patches/patch-m4_cares-compilers.m4 | 34 |
2 files changed, 36 insertions, 1 deletions
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([ |