summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-11-07 05:12:24 +0000
committerobache <obache@pkgsrc.org>2013-11-07 05:12:24 +0000
commit449070df947f48e1ab56422f03d9f2e8e7366065 (patch)
tree7d1b0970a1e9911ee448114c5a90c44b058371cd
parent6ec9716179a591a608a2d4372043a10d9f4d756c (diff)
downloadpkgsrc-449070df947f48e1ab56422f03d9f2e8e7366065.tar.gz
Use CC if CCPATH is not set yet.
It's better than nothing.
-rw-r--r--mk/endian.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/endian.mk b/mk/endian.mk
index a37ad376d0e..f40b8f10bb6 100644
--- a/mk/endian.mk
+++ b/mk/endian.mk
@@ -1,4 +1,4 @@
-# $NetBSD: endian.mk,v 1.7 2013/09/04 08:26:28 joerg Exp $
+# $NetBSD: endian.mk,v 1.8 2013/11/07 05:12:24 obache Exp $
#
# Determine the endianness of the platform by checking header files.
#
@@ -43,7 +43,7 @@ MACHINE_ENDIAN!= \
${ECHO} "\#define BYTE_ORDER 1234"; \
${ECHO} "\#endif"; \
${ECHO} "\#endif"; \
- ${ECHO} "BYTE_ORDER"; } | ${CCPATH} -E - | \
+ ${ECHO} "BYTE_ORDER"; } | ${CCPATH:U${CC}} -E - | \
{ while read line; do \
case $$line in \
1234) ${ECHO} "little"; exit 0 ;; \