mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-28 22:44:59 -04:00
20 lines
704 B
Plaintext
20 lines
704 B
Plaintext
$NetBSD: patch-ab,v 1.2 2014/12/10 09:43:29 mef Exp $
|
|
|
|
Don't hard-code -lpthread. Don't link with -lresolv on DragonFly.
|
|
(above is by @joerg from cvs log. But -pthread does not exist anymore)
|
|
|
|
--- src/tools/Makefile.in.orig 2009-08-15 22:19:24.000000000 +0900
|
|
+++ src/tools/Makefile.in 2014-12-10 18:16:10.000000000 +0900
|
|
@@ -141,6 +141,11 @@ target_alias = @target_alias@
|
|
INCLUDES = -I@top_srcdir@/src/lib
|
|
AM_CFLAGS = @CFLAGS@
|
|
|
|
+AM_LDFLAGS = -lldap -llber -lldap_r ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} @LDFLAGS@
|
|
+.if ${OPSYS} != "DragonFly"
|
|
+AM_LDFLAGS += -lresolv
|
|
+.endif
|
|
+
|
|
bin_PROGRAMS = adtool
|
|
|
|
adtool_LDADD = @top_srcdir@/src/lib/libactive_directory.a -lldap -llber -lldap_r -lpthread -lresolv
|