[mupen64plus-ui-console] 102/172: Enable support for link-time optimization

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:07:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-ui-console.

commit ec3337a77a0a70d4948256c08f21509c7235194b
Author: Sven Eckelmann <sven at narfation.org>
Date:   Wed May 30 14:30:42 2012 +0200

    Enable support for link-time optimization
---
 debian/changelog             |  7 +++++++
 debian/patches/gcc_lto.patch | 28 ++++++++++++++++++++++++++++
 debian/patches/series        |  1 +
 debian/rules                 |  2 +-
 4 files changed, 37 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c0b40c9..1e2e55c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+mupen64plus-ui-console (1.99.5-3) UNRELEASED; urgency=low
+
+  * debian/patches:
+    - Add gcc_lto.patch, Enable support for link-time optimization
+
+ -- Sven Eckelmann <sven at narfation.org>  Sat, 09 Jun 2012 01:11:42 +0200
+
 mupen64plus-ui-console (1.99.5-2) unstable; urgency=low
 
   [ Simon Ruderich ]
diff --git a/debian/patches/gcc_lto.patch b/debian/patches/gcc_lto.patch
new file mode 100644
index 0000000..d73b603
--- /dev/null
+++ b/debian/patches/gcc_lto.patch
@@ -0,0 +1,28 @@
+Description: Enable experimental support for link-time optimization
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/projects/unix/Makefile b/projects/unix/Makefile
+index c74791097d57f8de43eb562629fbb3ed0ebe585e..6c46a762ac54d23c5f4ba5bf59cc0eac6f7e4ebb 100644
+--- a/projects/unix/Makefile
++++ b/projects/unix/Makefile
+@@ -236,6 +236,7 @@ targets:
+ 	@echo "    DESTDIR=path   == path to prepend to all installation paths (only for packagers)"
+ 	@echo "  Debugging Options:"
+ 	@echo "    DEBUG=1        == add debugging symbols to application binary"
++	@echo "    LTO=1         == enable experimental build with link-time optimization"
+ 	@echo "    V=1            == show verbose compiler output"
+ 
+ all: $(TARGET)
+@@ -258,6 +259,11 @@ uninstall:
+ CFLAGS += -MD
+ -include $(OBJECTS:.o=.d)
+ 
++ifeq ($(LTO), 1)
++  CFLAGS += -flto
++  LDFLAGS += -fuse-linker-plugin -fwhole-program $(CFLAGS)
++endif
++
+ # standard build rules
+ $(OBJDIR)/%.o: $(SRCDIR)/%.c
+ 	$(COMPILE.c) -o $@ $<
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bf99d61
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+gcc_lto.patch
diff --git a/debian/rules b/debian/rules
index cbca48d..822c50a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
-MAKEOPTIONS = V=1 UNAME='$(DEB_HOST_ARCH_OS)' HOST_CPU='$(DEB_HOST_GNU_CPU)' APIDIR=/usr/include/mupen64plus/ DEBUG=1 PREFIX=/usr/ COREDIR="/usr/lib/$(DEB_HOST_MULTIARCH)/" PLUGINDIR="/usr/lib/$(DEB_HOST_MULTIARCH)/mupen64plus" MANDIR=/usr/share/man/ BINDIR=/usr/games/ OPTFLAGS="" PIE=1
+MAKEOPTIONS = V=1 UNAME='$(DEB_HOST_ARCH_OS)' HOST_CPU='$(DEB_HOST_GNU_CPU)' APIDIR=/usr/include/mupen64plus/ DEBUG=1 PREFIX=/usr/ COREDIR="/usr/lib/$(DEB_HOST_MULTIARCH)/" PLUGINDIR="/usr/lib/$(DEB_HOST_MULTIARCH)/mupen64plus" MANDIR=/usr/share/man/ BINDIR=/usr/games/ OPTFLAGS="" PIE=1 LTO=1
 DBG_PACKAGE=$(shell dpkg-parsechangelog|grep '^Source: '|sed 's/^Source:\s*//')-dbg
 
 binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-ui-console.git



More information about the Pkg-games-commits mailing list