Add -ldl if it is needed

This commit is contained in:
christos 2016-02-01 13:44:52 +00:00
parent d3cd10ccbc
commit 9c8e579af7
1 changed files with 7 additions and 1 deletions

View File

@ -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