summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2007-09-20 18:17:18 +0000
committerrillig <rillig>2007-09-20 18:17:18 +0000
commitc703c201d2d36409bf63ccd2a65778fa7b7b33cb (patch)
treefc403aea7dd1221e7442ea72cf832db6049c90b0 /mk
parent16646ac650bfe86381ccc2a8dbe07968c5041b9f (diff)
downloadpkgsrc-c703c201d2d36409bf63ccd2a65778fa7b7b33cb.tar.gz
When CPP is defined as "cc -E", the wrapper framework created the
wrapper for gcc and cc as type "CPP", although these aren't C preprocessors. By preventing the code from overwriting files, this works now.
Diffstat (limited to 'mk')
-rw-r--r--mk/wrapper/bsd.wrapper.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk
index 0bf1bcd5df1..7e4b7ab3eac 100644
--- a/mk/wrapper/bsd.wrapper.mk
+++ b/mk/wrapper/bsd.wrapper.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.wrapper.mk,v 1.71 2007/08/02 18:19:32 joerg Exp $
+# $NetBSD: bsd.wrapper.mk,v 1.72 2007/09/20 18:17:18 rillig Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -425,6 +425,7 @@ ${_WRAP_COOKIE.${_wrappee_}}: \
${_WRAP_TRANSFORM.${_wrappee_}}
${RUN} \
wrapper="${WRAPPER_${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}"; \
+ if [ -x "$$wrapper" ]; then ${ECHO_WRAPPER_MSG} "=> $$wrapper already exists. Skipping"; exit 0; fi; \
${ECHO_WRAPPER_MSG} "=> Creating ${_wrappee_} wrapper: $$wrapper"; \
gen_wrapper=yes; \
wrappee="${PKG_${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}"; \