CVS commit: src/tools/dbsym

2016-02-01 Thread Christos Zoulas
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



CVS commit: src/tools/dbsym

2016-02-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Feb  1 14:18:16 UTC 2016

Modified Files:
src/tools/dbsym: Makefile

Log Message:
silent when we don't have -ldl


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 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.8 src/tools/dbsym/Makefile:1.9
--- src/tools/dbsym/Makefile:1.8	Mon Feb  1 08:48:01 2016
+++ src/tools/dbsym/Makefile	Mon Feb  1 09:18:16 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2016/02/01 13:48:01 christos Exp $
+#	$NetBSD: Makefile,v 1.9 2016/02/01 14:18:16 christos Exp $
 
 NOMAN=	# defined
 
@@ -14,8 +14,8 @@ IBERTYDIR=	${TOOLCHAINOBJ}/build/libiber
 
 .include "${.CURDIR}/../Makefile.host"
 
-LIBDL!=		grep -- -ldl ${TOOLCHAINOBJ}/build/ld/Makefile
+LIBDL!=		grep -- -ldl ${TOOLCHAINOBJ}/build/ld/Makefile || echo no
 
-.if !empty(LIBDL)
+.if ${LIBDL} != "no"
 LDADD+= -ldl
 .endif