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 | 27c315b394e78a64aa0c27b76ee50b5b59c2ed0c (patch) | |
tree | 03070396284001f532661fcc2b616c0f9c1a39fd /mk/compiler/gcc.mk | |
parent | b37cceb5b15bacb067efafce7b4b43ee3e9ea2ed (diff) | |
download | pkgsrc-27c315b394e78a64aa0c27b76ee50b5b59c2ed0c.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 |