diff --git a/Makefile b/Makefile index 90124567f4..03af4cac46 100644 --- a/Makefile +++ b/Makefile @@ -673,6 +673,9 @@ else ifeq ($(OSX_BUILD),1) else ifeq ($(HOST_OS),Haiku) LDFLAGS := $(BACKEND_LDFLAGS) -no-pie +else ifeq (,$(findstring powerpc,$(machine))) + LDFLAGS := $(BITS) -mcpu=$(TARGET_ARCH) -lm $(BACKEND_LDFLAGS) -lpthread -ldl + else LDFLAGS := $(BITS) -march=$(TARGET_ARCH) -lm $(BACKEND_LDFLAGS) -lpthread -ldl ifeq ($(NO_PIE), 1) diff --git a/src/goddard/gd_types.h b/src/goddard/gd_types.h index 0857cc0691..6091c4c141 100644 --- a/src/goddard/gd_types.h +++ b/src/goddard/gd_types.h @@ -27,7 +27,11 @@ struct GdColour { union DynUnion { void *ptr; char *str; +#if IS_BIG_ENDIAN && IS_64_BIT + s64 word; +#else s32 word; +#endif }; struct DynList {