summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-08-16 10:03:44 +0000
committerobache <obache@pkgsrc.org>2010-08-16 10:03:44 +0000
commit29f197d0621c87486d6caf62c034365ce67b735f (patch)
tree675d49e62580aa818ad2b84ce35f03ff1c4cb411 /mk/wrapper
parent9fac54c8450043c46706047adb50421680995f84 (diff)
downloadpkgsrc-29f197d0621c87486d6caf62c034365ce67b735f.tar.gz
Force to use symbolic link for wrapper if WRAPPER_USE_SYMLINK is defined.
Workaround for missing hard link support on Haiku, PR#43398.
Diffstat (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/bsd.wrapper.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk
index 014e1c999d5..da8d23ff012 100644
--- a/mk/wrapper/bsd.wrapper.mk
+++ b/mk/wrapper/bsd.wrapper.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.wrapper.mk,v 1.84 2009/11/23 00:25:13 tron Exp $
+# $NetBSD: bsd.wrapper.mk,v 1.85 2010/08/16 10:03:44 obache Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -495,7 +495,7 @@ ${_alias_}: ${_WRAP_COOKIE.${_wrappee_}}
wrapper="${WRAPPER_${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}"; \
if [ ! -x ${.TARGET} -a -x $$wrapper ]; then \
${ECHO_WRAPPER_MSG} "=> Linking ${_wrappee_} wrapper: ${.TARGET}"; \
- ${LN} -f $$wrapper ${.TARGET}; \
+ ${LN} -f${WRAPPER_USE_SYMLINK:Ds} $$wrapper ${.TARGET}; \
fi
. endif
. endfor