diff options
author | joerg <joerg@pkgsrc.org> | 2013-09-04 08:26:28 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-09-04 08:26:28 +0000 |
commit | 8f8837a48256b0c222d50e5e00b88f3209f508e9 (patch) | |
tree | f5564fe62519cf33b31e8ebf62162f48ddbabdc6 /mk | |
parent | 824a29a6c22490ac910d30e2d12e1fbf2cb56578 (diff) | |
download | pkgsrc-8f8837a48256b0c222d50e5e00b88f3209f508e9.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.mk | 6 |
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 ;; \ |