From b7cd1d34afb593b1809ce3a865643d56a93c0689 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 2 Jun 2009 22:32:49 +0000 Subject: Learn from the AIX issues with hard links to symbolic links and always create the compiler aliases with ln -fs. --- mk/compiler/ccc.mk | 4 ++-- mk/compiler/hp.mk | 4 ++-- mk/compiler/icc.mk | 4 ++-- mk/compiler/ido.mk | 4 ++-- mk/compiler/mipspro.mk | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'mk/compiler') diff --git a/mk/compiler/ccc.mk b/mk/compiler/ccc.mk index f4005012cc2..2d3518ce7b2 100644 --- a/mk/compiler/ccc.mk +++ b/mk/compiler/ccc.mk @@ -1,4 +1,4 @@ -# $NetBSD: ccc.mk,v 1.18 2009/05/30 18:16:26 joerg Exp $ +# $NetBSD: ccc.mk,v 1.19 2009/06/02 22:32:49 joerg Exp $ # # This is the compiler definition for the Compaq C Compilers. # @@ -83,7 +83,7 @@ ${_CCC_${_var_}}: . for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//} ${RUN} \ if [ ! -x "${_alias_}" ]; then \ - ${LN} -f ${.TARGET} ${_alias_}; \ + ${LN} -f -s ${.TARGET} ${_alias_}; \ fi . endfor . endif diff --git a/mk/compiler/hp.mk b/mk/compiler/hp.mk index 8d9762982bb..a166cc6024b 100644 --- a/mk/compiler/hp.mk +++ b/mk/compiler/hp.mk @@ -1,4 +1,4 @@ -# $NetBSD: hp.mk,v 1.6 2009/05/30 18:16:26 joerg Exp $ +# $NetBSD: hp.mk,v 1.7 2009/06/02 22:32:49 joerg Exp $ # # This is the compiler definition for the HP-UX C/aC++ compilers. # @@ -85,7 +85,7 @@ ${_HP_${_var_}}: . for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//} ${RUN} \ if [ ! -x "${_alias_}" ]; then \ - ${LN} -f ${.TARGET} ${_alias_}; \ + ${LN} -f -s ${.TARGET} ${_alias_}; \ fi . endfor . endif diff --git a/mk/compiler/icc.mk b/mk/compiler/icc.mk index befa686fe8a..4f8ff385065 100644 --- a/mk/compiler/icc.mk +++ b/mk/compiler/icc.mk @@ -1,4 +1,4 @@ -# $NetBSD: icc.mk,v 1.6 2009/05/30 18:16:26 joerg Exp $ +# $NetBSD: icc.mk,v 1.7 2009/06/02 22:32:49 joerg Exp $ # # This is the compiler definition for the Intel compilers. # @@ -94,7 +94,7 @@ ${_ICC_${_var_}}: . for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//} ${RUN} \ if [ ! -x "${_alias_}" ]; then \ - ${LN} -f ${.TARGET} ${_alias_}; \ + ${LN} -f -s ${.TARGET} ${_alias_}; \ fi . endfor . endif diff --git a/mk/compiler/ido.mk b/mk/compiler/ido.mk index ecf3f1613a5..c9d3e198095 100644 --- a/mk/compiler/ido.mk +++ b/mk/compiler/ido.mk @@ -1,4 +1,4 @@ -# $NetBSD: ido.mk,v 1.7 2009/05/30 18:16:26 joerg Exp $ +# $NetBSD: ido.mk,v 1.8 2009/06/02 22:32:49 joerg Exp $ # # This is the compiler definition for the SGI IRIS Development Option # cc (IRIX 5). @@ -80,7 +80,7 @@ ${_IDO_${_var_}}: . for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//} ${RUN} \ if [ ! -x "${_alias_}" ]; then \ - ${LN} -f ${.TARGET} ${_alias_}; \ + ${LN} -f -s ${.TARGET} ${_alias_}; \ fi . endfor . endif diff --git a/mk/compiler/mipspro.mk b/mk/compiler/mipspro.mk index 3121a0374f3..c76a384641a 100644 --- a/mk/compiler/mipspro.mk +++ b/mk/compiler/mipspro.mk @@ -1,4 +1,4 @@ -# $NetBSD: mipspro.mk,v 1.40 2009/05/30 18:16:26 joerg Exp $ +# $NetBSD: mipspro.mk,v 1.41 2009/06/02 22:32:49 joerg Exp $ # # This is the compiler definition for the MIPSpro C compiler. # @@ -104,7 +104,7 @@ ${_MIPSPRO_${_var_}}: . for _alias_ in ${_ALIASES.${_var_}:S/^/${.TARGET:H}\//} ${RUN} \ if [ ! -x "${_alias_}" ]; then \ - ${LN} -f ${.TARGET} ${_alias_}; \ + ${LN} -f -s ${.TARGET} ${_alias_}; \ fi . endfor . endif -- cgit v1.2.3