pkgsrc/sysutils/adtool/patches/patch-ab
mef 8e08ee42fb (pkgsrc)
- patch-aa is now included, removed.
 - Add LICENSE= gnu-gpl-v2
 - Add CONF_FILES related ${MV} at target post-install:
(Upstream)
 - Update 1.2  to 1.3.3
   15/9/2009 1.3.3 release
   15/9/2009 added GPL license header to source files
   15/9/2009 --as-needed fix, patched src/tools/Makefile.am from Gentoo bug #128678
   8/6/2009 1.3.2 release
   8/6/2009 hide passwords from ps
   4/2/2009 1.3.1 release
   4/2/2009 removed reference to list option in man page and usage
   4/2/2009 updated libtool
   13/5/2005 disable ldap referrals to work better with win2k3 sp1
   30/8/2004 optarg null pointer fixes (Hilko Bengen)
   30/8/2004 delete password from memory (Stephan M«äller)
2014-12-10 09:43:29 +00:00

19 lines
704 B
Text

$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