Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/dbsym Figure out if we need libdl.



details:   https://anonhg.NetBSD.org/src/rev/7ec8b3c980f9
branches:  trunk
changeset: 343383:7ec8b3c980f9
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 01 13:48:01 2016 +0000

description:
Figure out if we need libdl.

diffstat:

 tools/dbsym/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 89ccb80495b4 -r 7ec8b3c980f9 tools/dbsym/Makefile
--- a/tools/dbsym/Makefile      Mon Feb 01 13:44:52 2016 +0000
+++ b/tools/dbsym/Makefile      Mon Feb 01 13:48:01 2016 +0000
@@ -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 @@
 IBERTYDIR=     ${TOOLCHAINOBJ}/build/libiberty
 
 .include "${.CURDIR}/../Makefile.host"
+
+LIBDL!=                grep -- -ldl ${TOOLCHAINOBJ}/build/ld/Makefile
+
+.if !empty(LIBDL)
+LDADD+= -ldl
+.endif



Home | Main Index | Thread Index | Old Index