[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 74/96: Updating linker flags, adding comments

noreply at xfce.org noreply at xfce.org
Thu Nov 27 22:21:19 CET 2014


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

nick pushed a commit to branch master
in repository panel-plugins/xfce4-hardware-monitor-plugin.

commit eda4d40d23171144dc9184cb31096ddbd3c2068b
Author: OmegaPhil <OmegaPhil at gmail.com>
Date:   Mon Aug 4 17:50:06 2014 +0100

    Updating linker flags, adding comments
---
 debian/rules |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 73baff0..0a1eb1d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,18 +13,28 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 # see ENVIRONMENT in dpkg-buildflags(1)
 # package maintainers to append CFLAGS
 export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
+
 # package maintainers to append LDFLAGS
-export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+# '-Wl,' is needed infront of every flag so that gcc passes through to
+# ldd intact
+# --as-needed: Reduce number of libraries marked as needed
+# -O1: Optimise linking
+# -z,defs: Undefined symbols not allowed in object files
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,-O1 -Wl,-z,defs
 
 # main packaging script based on dh7 syntax
 %:
 	dh $@ --parallel --with=autoreconf
 
 override_dh_auto_configure:
+
+	# Prevent pointless static object file compilation
 	dh_auto_configure -- --disable-static
 
 override_dh_auto_install:
 	dh_auto_install
+
+	# Remove libtool archives - not allowed
 	find debian/hardware-monitor/usr/lib -name '*.la' -delete
 
 override_dh_autoreconf:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list