From 38cf515ebd9c803b164454c6d3f50be8d71c0ada Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Sun, 9 Jan 2011 21:57:08 +0000 Subject: [PATCH] Pass -O1 to the linker so dynamic loading is faster. --- debian/changelog | 1 + debian/rules | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 5639e5eef8..519f4ec895 100644 --- a/debian/changelog +++ b/debian/changelog @@ -43,6 +43,7 @@ gtk+3.0 (2.99.0-1) UNRELEASED; urgency=low * debian/rules: - Remove hack to build on PowerPC64. That port is death, and if it's ever back, hopefully we won't need to workaround toolchain issues. + - Pass -O1 to the linker so dynamic loading is faster. -- Emilio Pozuelo Monfort Sun, 02 Jan 2011 20:08:53 +0000 diff --git a/debian/rules b/debian/rules index 91a542adab..91784eccd0 100644 --- a/debian/rules +++ b/debian/rules @@ -15,9 +15,13 @@ include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk GNOME_MODULE = gtk+ -# currently fails in the cups gtkprint backend +# Ensure the build aborts when there are still references to undefined symbols +# currently fails at least in the im-multipress im module #LDFLAGS += -Wl,-z,defs +# Make the linker work a bit harder so dynamic loading can be done faster +LDFLAGS += -Wl,-O1 + DEBVERSION := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') VERSION := $(shell echo $(DEBVERSION) | sed -e 's/-[^-]*$$//') APIVER := 3.0 @@ -153,5 +157,6 @@ binary-install/$(UDEB_PKG):: dh_install -p$(UDEB_PKG) $(mimedir)/mime.cache usr/share/mime list-missing: - perl -w debian/dh_listmissing.pl $(foreach f,$(FLAVORS),$(subst $(CURDIR)/,,$(installbasedir))/$(f)) 2>&1 | \ + # FIXME: remove this when CDBS' list-missing works with multiple flavors + perl -w debian/dh_listmissing.pl $(foreach f,$(DEB_MAKE_FLAVORS),debian/install/$(f)) 2>&1 | \ egrep -v '(\.la|$(LIBDIR)/gtk-3.0/$(GTK_BINARY_VERSION)/[^/]+/[^/]+\.a) has been installed' >&2