pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler Apparently, GCC isn't the only compiler th...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4bdb803c3741
branches: trunk
changeset: 467976:4bdb803c3741
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Feb 09 05:50:03 2004 +0000
description:
Apparently, GCC isn't the only compiler that tries to be clever by checking
with what path it was invoked. Copy the driver script trick from gcc.mk
into mipspro.mk and sunpro.mk.
diffstat:
mk/compiler/mipspro.mk | 9 ++++++---
mk/compiler/sunpro.mk | 9 ++++++---
2 files changed, 12 insertions(+), 6 deletions(-)
diffs (58 lines):
diff -r 16dfcb00d62f -r 4bdb803c3741 mk/compiler/mipspro.mk
--- a/mk/compiler/mipspro.mk Mon Feb 09 05:45:57 2004 +0000
+++ b/mk/compiler/mipspro.mk Mon Feb 09 05:50:03 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mipspro.mk,v 1.15 2004/02/08 02:59:14 jlam Exp $
+# $NetBSD: mipspro.mk,v 1.16 2004/02/09 05:50:03 jlam Exp $
.if !defined(COMPILER_MIPSPRO_MK)
COMPILER_MIPSPRO_MK= one
@@ -55,14 +55,17 @@
. endif
. endif
-# Create symlinks for the compiler into ${WRKDIR}.
+# Create compiler driver scripts in ${WRKDIR}.
. for _target_ in ${_MIPSPRO_LINKS}
. if !target(${${_target_}})
override-tools: ${${_target_}}
${${_target_}}:
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
${_PKG_SILENT}${_PKG_DEBUG} \
- ${LN} -fs ${MIPSPROBASE}/bin/${${_target_}:T} ${.TARGET}
+ (${ECHO} '#!${TOOLS_SHELL}'; \
+ ${ECHO} 'exec ${MIPSPROBASE}/bin/${${_target_}:T} "$$@"'; \
+ ) > ${.TARGET}
+ ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
. endif
. endfor
. endif # COMPILER_MIPSPRO_MK
diff -r 16dfcb00d62f -r 4bdb803c3741 mk/compiler/sunpro.mk
--- a/mk/compiler/sunpro.mk Mon Feb 09 05:45:57 2004 +0000
+++ b/mk/compiler/sunpro.mk Mon Feb 09 05:50:03 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro.mk,v 1.12 2004/02/08 02:59:14 jlam Exp $
+# $NetBSD: sunpro.mk,v 1.13 2004/02/09 05:50:03 jlam Exp $
.if !defined(COMPILER_SUNPRO_MK)
COMPILER_SUNPRO_MK= one
@@ -56,14 +56,17 @@
. endif
. endif
-# Create symlinks for the compiler into ${WRKDIR}.
+# Create compiler driver scripts in ${WRKDIR}.
. for _target_ in ${_SUNPRO_LINKS}
. if !target(${${_target_}})
override-tools: ${${_target_}}
${${_target_}}:
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
${_PKG_SILENT}${_PKG_DEBUG} \
- ${LN} -fs ${SUNWSPROBASE}/bin/${${_target_}:T} ${.TARGET}
+ (${ECHO} '#!${TOOLS_SHELL}'; \
+ ${ECHO} 'exec ${SUNWSPROBASE}/bin/${${_target_}:T} "$$@"'; \
+ ) > ${.TARGET}
+ ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
. endif
. endfor
. endif # COMPILER_SUNPRO_MK
Home |
Main Index |
Thread Index |
Old Index