summaryrefslogtreecommitdiff
path: root/mk/compiler.mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-05-08 16:36:55 +0000
committergrant <grant@pkgsrc.org>2004-05-08 16:36:55 +0000
commit9d57e1df1f50d25c7f53b43d3f6e86fab51b43cb (patch)
tree7c9125438ffac5b2ab8d153ae97a815bdce7e635 /mk/compiler.mk
parent91e9b985e1768eddfbcf1cca3bafe92d66fb53d9 (diff)
downloadpkgsrc-9d57e1df1f50d25c7f53b43d3f6e86fab51b43cb.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.mk11
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"