Module Name:    src
Committed By:   christos
Date:           Mon Feb  1 13:48:01 UTC 2016

Modified Files:
        src/tools/dbsym: Makefile

Log Message:
Figure out if we need libdl.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tools/dbsym/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/dbsym/Makefile
diff -u src/tools/dbsym/Makefile:1.7 src/tools/dbsym/Makefile:1.8
--- src/tools/dbsym/Makefile:1.7	Mon Oct 31 04:14:44 2011
+++ src/tools/dbsym/Makefile	Mon Feb  1 08:48:01 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2011/10/31 08:14:44 mrg Exp $
+#	$NetBSD: Makefile,v 1.8 2016/02/01 13:48:01 christos Exp $
 
 NOMAN=	# defined
 
@@ -13,3 +13,9 @@ BFDDIR=		${TOOLCHAINOBJ}/build/bfd
 IBERTYDIR=	${TOOLCHAINOBJ}/build/libiberty
 
 .include "${.CURDIR}/../Makefile.host"
+
+LIBDL!=		grep -- -ldl ${TOOLCHAINOBJ}/build/ld/Makefile
+
+.if !empty(LIBDL)
+LDADD+= -ldl
+.endif

Reply via email to