pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/bind916 bind916: Fix linker flags on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/90a93f9722e2
branches:  trunk
changeset: 376013:90a93f9722e2
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Mar 31 12:16:24 2022 +0000

description:
bind916: Fix linker flags on SunOS.

diffstat:

 net/bind916/distinfo                   |   4 ++--
 net/bind916/patches/patch-configure.ac |  22 ++++++++++++++++++----
 2 files changed, 20 insertions(+), 6 deletions(-)

diffs (62 lines):

diff -r abf6d1a903b8 -r 90a93f9722e2 net/bind916/distinfo
--- a/net/bind916/distinfo      Thu Mar 31 11:55:31 2022 +0000
+++ b/net/bind916/distinfo      Thu Mar 31 12:16:24 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.33 2022/03/17 00:18:05 taca Exp $
+$NetBSD: distinfo,v 1.34 2022/03/31 12:16:24 jperkin Exp $
 
 BLAKE2s (bind-9.16.27.tar.xz) = 16da007bf1fce196969d93cc54e6849a624afa1d39ee57332ffb6d08c8c67cdd
 SHA512 (bind-9.16.27.tar.xz) = 5c71f228db83aa8cc9e65466d6e5afca4a9f80c693358111a003fe09e1a14522175eb2b6a0f11e2a2cd4fdba01f2ae315de52e394a441b3861ca2a011e02af62
@@ -16,7 +16,7 @@
 SHA1 (patch-config.h.in) = 6072793048cdf590863046355eeffa1d93524c36
 SHA1 (patch-config.sub) = 7389c0f2500f2afe96d43979a2d3e0b9f8dff073
 SHA1 (patch-config.threads.in) = fc5cc7097d87523a34c0e630cb8dd1d081d859e5
-SHA1 (patch-configure.ac) = 3dd8c49eb6bc475c20c88edc20bd8457698ad500
+SHA1 (patch-configure.ac) = 9a8aa06ca82de5f3a37aac01aef2fc93af575309
 SHA1 (patch-contrib_dlz_config.dlz.in) = 6c53d61aaaf1a952a867e4c4da0194db94f511d7
 SHA1 (patch-lib_dns_byaddr.c) = 647ddaaaf040233e18d1a87d83bc2bd63d2a20e3
 SHA1 (patch-lib_dns_client.c) = 94909ebeaded676cca502d83bf8071ae651e1928
diff -r abf6d1a903b8 -r 90a93f9722e2 net/bind916/patches/patch-configure.ac
--- a/net/bind916/patches/patch-configure.ac    Thu Mar 31 11:55:31 2022 +0000
+++ b/net/bind916/patches/patch-configure.ac    Thu Mar 31 12:16:24 2022 +0000
@@ -1,10 +1,11 @@
-$NetBSD: patch-configure.ac,v 1.1 2020/12/19 16:41:36 taca Exp $
+$NetBSD: patch-configure.ac,v 1.2 2022/03/31 12:16:24 jperkin Exp $
 
 Add support for blocklist(blacklist).
+Fix linker flags on SunOS.
 
---- configure.ac.orig  2020-12-07 08:16:53.000000000 +0000
+--- configure.ac.orig  2022-03-07 08:48:03.000000000 +0000
 +++ configure.ac
-@@ -695,6 +695,16 @@ AC_CHECK_FUNCS([pthread_setaffinity_np c
+@@ -721,6 +721,16 @@ AC_CHECK_FUNCS([sched_yield pthread_yiel
  AC_CHECK_FUNCS([pthread_setname_np pthread_set_name_np])
  AC_CHECK_HEADERS([pthread_np.h], [], [], [#include <pthread.h>])
  
@@ -21,7 +22,7 @@
  # libuv
  AC_MSG_CHECKING(for libuv)
  PKG_CHECK_MODULES([LIBUV], [libuv >= 1.0.0], [],
-@@ -1342,6 +1352,18 @@ AS_CASE([$with_libxml2],
+@@ -1388,6 +1398,18 @@ AS_CASE([$with_libxml2],
                                 [AC_DEFINE([HAVE_LIBXML2], [1], [Use libxml2 library])])],
        [AC_MSG_ERROR([Specifying libxml2 installation path is not supported, adjust PKG_CONFIG_PATH instead])])
  
@@ -40,3 +41,16 @@
  #
  # DEPRECATED
  #
+@@ -2523,9 +2545,9 @@ AS_IF([test "$with_dlopen" = "yes"],
+                      ])
+              ],
+              [*-solaris*],[
+-               SO_CFLAGS="-KPIC"
+-               SO_LDFLAGS="-G -z text"
+-               SO_LD="ld"
++               SO_CFLAGS="-fPIC"
++               SO_LDFLAGS="-Xcompiler -shared"
++               SO_LD="${CC}"
+              ],
+              [ia64-hp-hpux*],[
+                SO_CFLAGS="+z"



Home | Main Index | Thread Index | Old Index