Source-Changes-HG archive

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

[src/trunk]: src/tools/mdsetimage Add -ldl if it is needed



details:   https://anonhg.NetBSD.org/src/rev/7232a082abda
branches:  trunk
changeset: 813524:7232a082abda
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 01 13:44:52 2016 +0000

description:
Add -ldl if it is needed

diffstat:

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

diffs (19 lines):

diff -r 17d451649f13 -r 7232a082abda tools/mdsetimage/Makefile
--- a/tools/mdsetimage/Makefile Mon Feb 01 12:56:06 2016 +0000
+++ b/tools/mdsetimage/Makefile Mon Feb 01 13:44:52 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9 2011/10/31 08:14:44 mrg Exp $
+#      $NetBSD: Makefile,v 1.10 2016/02/01 13:44:52 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