pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler Use a two-line "exec" shell script instead...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0cc3eb2ab2c8
branches: trunk
changeset: 467903:0cc3eb2ab2c8
user: jlam <jlam%pkgsrc.org@localhost>
date: Sun Feb 08 03:29:16 2004 +0000
description:
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:
mk/compiler/gcc.mk | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r d53a00c48e8d -r 0cc3eb2ab2c8 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk Sun Feb 08 03:00:29 2004 +0000
+++ b/mk/compiler/gcc.mk Sun Feb 08 03:29:16 2004 +0000
@@ -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 @@
${${_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
Home |
Main Index |
Thread Index |
Old Index