From ac8a4999e62fed6cbfe284ffda2d00dd76f5b1cb Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Wed, 20 May 2015 15:20:33 +1000 Subject: Fix HOSTEND check in Makefile.main for ppc64le Otherwise we build with -DHAVE_BIG_ENDIAN on ppc64le, which is *NOT* what we want for HOSTCC on ppc64le. Signed-off-by: Stewart Smith --- Makefile.main | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.main') diff --git a/Makefile.main b/Makefile.main index c655778..7687d9e 100644 --- a/Makefile.main +++ b/Makefile.main @@ -28,7 +28,7 @@ CWARNS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ # Host tools and options HOSTCC=gcc -HOSTEND=$(shell uname -m | sed -e 's/^i.*86$$/LITTLE/' -e 's/^x86.*/LITTLE/' -e 's/^ppc.*/BIG/') +HOSTEND=$(shell uname -m | sed -e 's/^i.*86$$/LITTLE/' -e 's/^x86.*/LITTLE/' -e 's/^ppc64le/LITTLE/' -e 's/^ppc.*/BIG/') HOSTCFLAGS=-O1 $(CWARNS) -DHAVE_$(HOSTEND)_ENDIAN -MMD VALGRIND=valgrind -q --show-reachable=yes --error-exitcode=99 -- cgit v1.1