summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjoerg <joerg>2013-09-04 08:26:28 +0000
committerjoerg <joerg>2013-09-04 08:26:28 +0000
commit9d68254246ac1d6dba0abb916fc41fc04c818e77 (patch)
treef5564fe62519cf33b31e8ebf62162f48ddbabdc6 /mk
parenteeef3c105710c2104b2d67b3631a4a5992fb650d (diff)
downloadpkgsrc-9d68254246ac1d6dba0abb916fc41fc04c818e77.tar.gz
Spell the C compiler CCPATH as CC gets the wrapper threatment and might
not exist at this point yet.
Diffstat (limited to 'mk')
-rw-r--r--mk/endian.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/endian.mk b/mk/endian.mk
index 33dd383dffb..a37ad376d0e 100644
--- a/mk/endian.mk
+++ b/mk/endian.mk
@@ -1,4 +1,4 @@
-# $NetBSD: endian.mk,v 1.6 2009/01/14 17:27:37 sketch Exp $
+# $NetBSD: endian.mk,v 1.7 2013/09/04 08:26:28 joerg Exp $
#
# Determine the endianness of the platform by checking header files.
#
@@ -16,6 +16,8 @@
.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
+
.if !defined(MACHINE_ENDIAN)
. if exists(/usr/include/endian.h)
_ENDIAN_H= endian.h # Linux
@@ -41,7 +43,7 @@ MACHINE_ENDIAN!= \
${ECHO} "\#define BYTE_ORDER 1234"; \
${ECHO} "\#endif"; \
${ECHO} "\#endif"; \
- ${ECHO} "BYTE_ORDER"; } | ${CC} -E - | \
+ ${ECHO} "BYTE_ORDER"; } | ${CCPATH} -E - | \
{ while read line; do \
case $$line in \
1234) ${ECHO} "little"; exit 0 ;; \