pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Use CC if CCPATH is not set yet.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c35de2403262
branches:  trunk
changeset: 626294:c35de2403262
user:      obache <obache%pkgsrc.org@localhost>
date:      Thu Nov 07 05:12:24 2013 +0000

description:
Use CC if CCPATH is not set yet.
It's better than nothing.

diffstat:

 mk/endian.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c7febac206a0 -r c35de2403262 mk/endian.mk
--- a/mk/endian.mk      Thu Nov 07 04:27:04 2013 +0000
+++ b/mk/endian.mk      Thu Nov 07 05:12:24 2013 +0000
@@ -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 @@
          ${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 ;;                     \



Home | Main Index | Thread Index | Old Index