diff options
author | grant <grant> | 2004-05-08 16:36:55 +0000 |
---|---|---|
committer | grant <grant> | 2004-05-08 16:36:55 +0000 |
commit | 3dcfbfc806279c8a528b363d614d076af9659c15 (patch) | |
tree | 7c9125438ffac5b2ab8d153ae97a815bdce7e635 /mk/compiler.mk | |
parent | 5a08a58d334a2dc24c3f8b505076e8cc3578e36d (diff) | |
download | pkgsrc-3dcfbfc806279c8a528b363d614d076af9659c15.tar.gz |
correctly preserve the user-specified order of pseudo-compilers. patch
from jlam@.
Diffstat (limited to 'mk/compiler.mk')
-rw-r--r-- | mk/compiler.mk | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk index 4c42ba0f016..f1ed1999b83 100644 --- a/mk/compiler.mk +++ b/mk/compiler.mk @@ -1,4 +1,4 @@ -# $NetBSD: compiler.mk,v 1.29 2004/05/08 15:09:31 grant Exp $ +# $NetBSD: compiler.mk,v 1.30 2004/05/08 16:36:55 grant Exp $ # # This Makefile fragment implements handling for supported C/C++/Fortran # compilers. @@ -132,15 +132,14 @@ _COMPILER= ${_compiler_} .if !defined(_COMPILER) PKG_FAIL_REASON+= "No acceptable compiler found for ${PKGNAME}." -.else -_PKGSRC_COMPILER:= ${_COMPILER} .endif -.for _compiler_ in ${_PSEUDO_COMPILERS} -. if !empty(PKGSRC_COMPILER:M${_compiler_}) -_PKGSRC_COMPILER:= ${_PKGSRC_COMPILER} ${_compiler_} +.for _compiler_ in ${PKGSRC_COMPILER} +. if !empty(_PSEUDO_COMPILERS:M${_compiler_}) +_PKGSRC_COMPILER:= ${_compiler_} ${_PKGSRC_COMPILER} . endif .endfor +_PKGSRC_COMPILER:= ${_COMPILER} ${_PKGSRC_COMPILER} .for _compiler_ in ${_PKGSRC_COMPILER} . include "../../mk/compiler/${_compiler_}.mk" |