diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-09 05:50:03 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-09 05:50:03 +0000 |
commit | cb345dd94cbe41ea23df82b7e497eac3bb07dfad (patch) | |
tree | 20b9604b2d0b7d21e5e01ce82c27f0ee5780c70d /mk/compiler/sunpro.mk | |
parent | dc8414a9a555d224954ff573c532d6df0355e3fc (diff) | |
download | pkgsrc-cb345dd94cbe41ea23df82b7e497eac3bb07dfad.tar.gz |
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 (limited to 'mk/compiler/sunpro.mk')
-rw-r--r-- | mk/compiler/sunpro.mk | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk index a17fa0c7a9c..aa83002e394 100644 --- a/mk/compiler/sunpro.mk +++ b/mk/compiler/sunpro.mk @@ -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 @@ PATH:= ${_SUNPRO_DIR}/bin:${PATH} . 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 |