diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-08 03:29:16 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-08 03:29:16 +0000 |
commit | f57168db2f4ee404d43b57042fa4d0d28ccfe8e1 (patch) | |
tree | 03070396284001f532661fcc2b616c0f9c1a39fd /mk/compiler/gcc.mk | |
parent | 75f431d969f29ed2e62ab970d189c492a40ef738 (diff) | |
download | pkgsrc-f57168db2f4ee404d43b57042fa4d0d28ccfe8e1.tar.gz |
Use a two-line "exec" shell script instead of a symlink to the real GCC.
This should fix problems with not finding "cc1" or other GCC subprograms.
Diffstat (limited to 'mk/compiler/gcc.mk')
-rw-r--r-- | mk/compiler/gcc.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index 1bb6992f098..3e7ddee642f 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.45 2004/02/08 02:59:14 jlam Exp $ +# $NetBSD: gcc.mk,v 1.46 2004/02/08 03:29:16 jlam Exp $ .if !defined(COMPILER_GCC_MK) COMPILER_GCC_MK= one @@ -344,7 +344,9 @@ override-tools: ${${_target_}} ${${_target_}}: ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H} ${_PKG_SILENT}${_PKG_DEBUG} \ - ${LN} -fs ${_GCCBINDIR}/${${_target_}:T} ${.TARGET} + (${ECHO} '#!${BUILDLINK_SHELL}'; \ + ${ECHO} 'exec ${_GCCBINDIR}/${${_target_}:T} "$$@"'; \ + ) > ${.TARGET} . endif . endfor . endif # COMPILER_GCC_MK |