Commit graph

10 commits

Author SHA1 Message Date
obache
63a1421453 Fixes system endian header detection.
PR pkg/48823
2014-05-21 01:43:50 +00:00
obache
1b7dc20b61 Use find-headers.mk to detect available endian.h. 2013-11-26 07:25:53 +00:00
obache
d7b94dedf9 Use CC if CCPATH is not set yet.
It's better than nothing.
2013-11-07 05:12:24 +00:00
joerg
72725a3902 Spell the C compiler CCPATH as CC gets the wrapper threatment and might
not exist at this point yet.
2013-09-04 08:26:28 +00:00
sketch
c4474d647e Don't use full path to include, avoids
"<stdin>", line 4: warning: #include of /usr/include/... may be non-portable

warning with Sun Studio.
2009-01-14 17:27:37 +00:00
rillig
197add6321 On IRIX, <standards.h> needs to be included before <sys/endian.h>. 2007-03-08 23:11:20 +00:00
jlam
183c1ce2f5 Rewrite to avoid needing egrep. 2005-04-30 03:01:06 +00:00
jlam
7699290f10 If we're passing through MAKEFLAGS variables whose values may contain
spaces, use the :Q modifier instead of double-quoting the value.  This
avoids breakage when executing the just-in-time su targets.
2004-02-06 19:04:24 +00:00
grant
af823178c5 make this work on Solaris by using ${EGREP} instead of ${GREP}. 2002-08-14 02:38:25 +00:00
jlam
ff13344585 Makefile fragment to determine the endianness of the platform by checking
header files.  It defines MACHINE_ENDIAN which is one of three values:
little, big, or unknown.

This file is used in package Makefiles as follows:

.include "../../mk/endian.mk"

.if ${MACHINE_ENDIAN} == "big"
# ...big endian stuff...
.elif ${MACHINE_ENDIAN} == "little"
# ...little endian stuff...
.else
BROKEN=       "Unknown endianness"
.endif
2002-04-22 02:30:51 +00:00