don't run grep if we don't have the Makefile, like when we are building
objdirs
This commit is contained in:
parent
5d66200563
commit
792fa3b107
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.9 2016/02/01 14:18:16 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.10 2017/01/06 17:22:51 christos Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
@ -14,8 +14,11 @@ IBERTYDIR= ${TOOLCHAINOBJ}/build/libiberty
|
||||
|
||||
.include "${.CURDIR}/../Makefile.host"
|
||||
|
||||
LIBDL!= grep -- -ldl ${TOOLCHAINOBJ}/build/ld/Makefile || echo no
|
||||
|
||||
.if ${LIBDL} != "no"
|
||||
LDADD+= -ldl
|
||||
LDMAKEFILE=${TOOLCHAINOBJ}/build/ld/Makefile
|
||||
.if exists(${LDMAKEFILE})
|
||||
HAVE_LIBDL!= grep -- -ldl ${LDMAKEFILE} || echo no
|
||||
.endif
|
||||
|
||||
.if ${HAVE_LIBDL} != "no"
|
||||
LDADD+= -ldl
|
||||
.endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.11 2016/02/01 14:17:21 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.12 2017/01/06 17:22:51 christos Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
@ -14,8 +14,12 @@ IBERTYDIR= ${TOOLCHAINOBJ}/build/libiberty
|
||||
|
||||
.include "${.CURDIR}/../Makefile.host"
|
||||
|
||||
LIBDL!= grep -- -ldl ${TOOLCHAINOBJ}/build/ld/Makefile || echo no
|
||||
|
||||
.if ${LIBDL} != "no"
|
||||
LDMAKEFILE=${TOOLCHAINOBJ}/build/ld/Makefile
|
||||
.if exists(${LDMAKEFILE})
|
||||
HAVE_LIBDL!= grep -- -ldl ${LDMAKEFILE} || echo no
|
||||
.endif
|
||||
|
||||
.if ${HAVE_LIBDL} != "no"
|
||||
LDADD+= -ldl
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user