2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Fix the build on NetBSD due to the differences in pthread implementation.

Signed-off-by: Ondřej Surý <ondrej@sury.org>
This commit is contained in:
Håvard Eidnes
2018-11-22 15:15:11 +01:00
committed by Ondřej Surý
parent 259a4947e6
commit f6c4ed94e4
3 changed files with 25 additions and 15 deletions

View File

@@ -2697,7 +2697,7 @@ AS_IF([test "$with_dlopen" = "yes"],
SO_LD="${CC}"
])
],
[*-freebsd*|*-openbsd*],[
[*-freebsd*|*-openbsd*|*-netbsd*],[
LDFLAGS="${LDFLAGS} -Wl,-E"
SO_CFLAGS="-fpic"
AS_IF([test "$use_libtool" = "yes"],[
@@ -2708,12 +2708,6 @@ AS_IF([test "$with_dlopen" = "yes"],
SO_LD="${CC}"
])
],
[*-netbsd*],[
SO_CFLAGS="-fpic"
SO_LDFLAGS="-Bshareable -x"
SO_LD="ld"
SO_STRIP="sed -e s/-Wl,//g"
],
[*-solaris*],[
SO_CFLAGS="-KPIC"
SO_LDFLAGS="-G -z text"