--- Makefile +++ Makefile @@ -51,6 +51,10 @@ ifneq ($(strip $(shell $(CC) -v 2>&1 |gr solaris = true endif +ifneq ($(strip $(shell $(CC) -v 2>&1 |grep "sparc64")),) + bigendian = true +endif + # warn if using non-gnu make ifeq ($(strip $(shell make -v |grep "GNU")),)