./modest/debian r24: Build with -z defs, -O1, and --as-needed in LDFLAGS.

Loïc Minier lool at dooz.org
Thu Aug 28 01:55:46 UTC 2008


------------------------------------------------------------
revno: 24
committer: Loïc Minier <lool at dooz.org>
branch nick: debian
timestamp: Thu 2008-08-28 03:55:46 +0200
message:
  Build with -z defs, -O1, and --as-needed in LDFLAGS.
modified:
  debian/changelog
  debian/rules
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog	2008-08-28 01:54:36 +0000
+++ b/debian/changelog	2008-08-28 01:55:46 +0000
@@ -49,6 +49,7 @@
   * Tune SVN snapshot information in copyright.
   * Update copyright and drop "author" since AUTHORS is obviously out of date.
   * Add Homepage field.
+  * Build with -z defs, -O1, and --as-needed in LDFLAGS.
 
  -- Jonny Lamb <jonnylamb at jonnylamb.com>  Fri, 27 Jun 2008 21:00:21 +0100
 

=== modified file 'debian/rules'
--- a/debian/rules	2008-08-14 15:02:24 +0000
+++ b/debian/rules	2008-08-28 01:55:46 +0000
@@ -23,6 +23,8 @@
 # Use soft-float and thumb mode if it is enabled.
 CFLAGS += $(if $(findstring thumb,$(DEB_BUILD_OPTIONS)),-mthumb)
 
+LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
+
 INSTALL_PROGRAM += $(if $(findstring nostrip,$(DEB_BUILD_OPTIONS)),-s)
 
 configure_flags += $(if $(findstring nolauncher,$(DEB_BUILD_OPTIONS)),--enable_maemo_launcher)
@@ -32,7 +34,7 @@
 configure-stamp: patch
 	dh_testdir
 	if [ ! -x configure ]; then NOCONFIGURE=1 ./autogen.sh; fi
-	CFLAGS="$(CFLAGS)" ./configure $(configure_flags)
+	CFLAGS="$(CFLAGS)" LDFLAGS="$(LFLAGS)" ./configure $(configure_flags)
 	touch $@
 
 build: build-stamp



More information about the pkg-maemo-commits mailing list