diff --git a/srcpkgs/mame/patches/ppc-fixes.patch b/srcpkgs/mame/patches/ppc-fixes.patch new file mode 100644 index 00000000000..c65ee1c8852 --- /dev/null +++ b/srcpkgs/mame/patches/ppc-fixes.patch @@ -0,0 +1,15 @@ +--- makefile ++++ makefile +@@ -394,6 +394,12 @@ BIGENDIAN := 1 + endif + endif # BIGENDIAN + ++# Work around an issue with long doubles on ppc (#3157) ++ifneq (,$(findstring ppc,$(UNAME))) ++ARCHOPTS_C += -mlong-double-64 ++ARCHOPTS_CXX += -mlong-double-64 ++endif ++ + ifndef PYTHON_EXECUTABLE + PYTHON := python + else