diff options
author | jlam <jlam> | 2002-08-28 04:49:16 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-08-28 04:49:16 +0000 |
commit | 02feb7faba8b44938ec5134a38b310c5cce728fe (patch) | |
tree | 2d87f491d1c5101a162cc4fe4f0d65aec4c28d48 | |
parent | 3c811366e299dd088325b99685f34b874dec5f78 (diff) | |
download | pkgsrc-02feb7faba8b44938ec5134a38b310c5cce728fe.tar.gz |
Don't try to multiply define the same target for generating buildlink2
wrapper script. This can occur if you set something like LD=cc where
the cc wrapper is already generated from CC=cc.
-rw-r--r-- | mk/buildlink2/bsd.buildlink2.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/buildlink2/bsd.buildlink2.mk b/mk/buildlink2/bsd.buildlink2.mk index d1fb3f77f73..3d8edd57ccf 100644 --- a/mk/buildlink2/bsd.buildlink2.mk +++ b/mk/buildlink2/bsd.buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink2.mk,v 1.5 2002/08/27 17:34:04 jlam Exp $ +# $NetBSD: bsd.buildlink2.mk,v 1.6 2002/08/28 04:49:16 jlam Exp $ # # An example package buildlink2.mk file: # @@ -476,6 +476,7 @@ BUILDLINK_${_wrappee_}= \ ${BUILDLINK_DIR}/bin/${${_wrappee_}:T:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//} buildlink-wrappers: ${BUILDLINK_${_wrappee_}} +.if !target(${BUILDLINK_${_wrappee_}}) ${BUILDLINK_${_wrappee_}}: \ ${_BLNK_WRAPPER_SH.${_wrappee_}} \ ${_BLNK_WRAP_PRE_CACHE.${_wrappee_}} \ @@ -526,6 +527,7 @@ ${BUILDLINK_${_wrappee_}}: \ -e "s|@_BLNK_WRAP_SANITIZE_PATH@|${_BLNK_WRAP_SANITIZE_PATH.${_wrappee_}:Q}|g" \ > ${.TARGET}; \ ${CHMOD} +x ${.TARGET} +.endif . for _alias_ in ${_ALIASES.${_wrappee_}:S/^/${BUILDLINK_DIR}\/bin\//} . if !target(${_alias_}) |