Module Name: src
Committed By: christos
Date: Mon Feb 1 13:44:52 UTC 2016
Modified Files:
src/tools/mdsetimage: Makefile
Log Message:
Add -ldl if it is needed
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tools/mdsetimage/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/mdsetimage/Makefile
diff -u src/tools/mdsetimage/Makefile:1.9 src/tools/mdsetimage/Makefile:1.10
--- src/tools/mdsetimage/Makefile:1.9 Mon Oct 31 04:14:44 2011
+++ src/tools/mdsetimage/Makefile Mon Feb 1 08:44:52 2016
@@ -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 @@ 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