handle the case where we don't have the files built yet

This commit is contained in:
christos 2017-01-06 20:27:19 +00:00
parent 9ed7390988
commit 81c11d5f0f
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2017/01/06 17:22:51 christos Exp $
# $NetBSD: Makefile,v 1.11 2017/01/06 20:27:19 christos Exp $
NOMAN= # defined
@ -16,7 +16,9 @@ IBERTYDIR= ${TOOLCHAINOBJ}/build/libiberty
LDMAKEFILE=${TOOLCHAINOBJ}/build/ld/Makefile
.if exists(${LDMAKEFILE})
HAVE_LIBDL!= grep -- -ldl ${LDMAKEFILE} || echo no
HAVE_LIBDL!= grep -- -ldl ${LDMAKEFILE} || echo no
.else
HAVE_LIBDL= no
.endif
.if ${HAVE_LIBDL} != "no"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2017/01/06 17:22:51 christos Exp $
# $NetBSD: Makefile,v 1.13 2017/01/06 20:27:19 christos Exp $
NOMAN= # defined
@ -17,7 +17,9 @@ IBERTYDIR= ${TOOLCHAINOBJ}/build/libiberty
LDMAKEFILE=${TOOLCHAINOBJ}/build/ld/Makefile
.if exists(${LDMAKEFILE})
HAVE_LIBDL!= grep -- -ldl ${LDMAKEFILE} || echo no
HAVE_LIBDL!= grep -- -ldl ${LDMAKEFILE} || echo no
.else
HAVE_LIBDL= no
.endif
.if ${HAVE_LIBDL} != "no"