Control: tags -1 origin-ubuntu artful ubuntu-patch Hi Sérgio,
I noticed that the hanging builds were building with -O3, which is not considered a correct general-purpose optimization. Switching to -O2 allowed these builds to complete in normal time on all architectures in Ubuntu. You may wish to consider the attached patch for Debian as well. Thanks, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ [email protected] [email protected]
diff -Nru libretro-bsnes-mercury-094+git20160126/debian/patches/O2-not-O3-optimization.patch libretro-bsnes-mercury-094+git20160126/debian/patches/O2-not-O3-optimization.patch --- libretro-bsnes-mercury-094+git20160126/debian/patches/O2-not-O3-optimization.patch 1969-12-31 16:00:00.000000000 -0800 +++ libretro-bsnes-mercury-094+git20160126/debian/patches/O2-not-O3-optimization.patch 2017-08-11 22:20:03.000000000 -0700 @@ -0,0 +1,18 @@ +Description: use -O2 optimization, not -O3 + -O3 is not considered general-purpose, and building with -O3 causes build + timeouts on arm64 and s390x. Build with -O2 instead. +Author: Steve Langasek <[email protected]> + +Index: libretro-bsnes-mercury-094+git20160126/Makefile +=================================================================== +--- libretro-bsnes-mercury-094+git20160126.orig/Makefile ++++ libretro-bsnes-mercury-094+git20160126/Makefile +@@ -29,7 +29,7 @@ + ifneq ($(debug),) + flags := -I. -O0 -g + else +- flags := -I. -O3 -fomit-frame-pointer ++ flags := -I. -O2 -fomit-frame-pointer + endif + + cflags := $(CFLAGS) -std=gnu99 -xc diff -Nru libretro-bsnes-mercury-094+git20160126/debian/patches/series libretro-bsnes-mercury-094+git20160126/debian/patches/series --- libretro-bsnes-mercury-094+git20160126/debian/patches/series 2017-04-09 09:39:21.000000000 -0700 +++ libretro-bsnes-mercury-094+git20160126/debian/patches/series 2017-08-11 22:14:33.000000000 -0700 @@ -1 +1,2 @@ 01_add_env_variables.patch +O2-not-O3-optimization.patch
signature.asc
Description: PGP signature

