[Pkg-kde-extras] Bug#669182: gtk2-engines-oxygen: LDFLAGS hardening flags missing

Simon Ruderich simon at ruderich.org
Wed Apr 18 00:25:26 UTC 2012


Dear Maintainer,

Just found a simpler patch which also fixes the problem.

DEB_*_MAINT_APPEND is the preferred way to set additional flags
(see man dpkg-buildflags for more information).

diff -Nru gtk2-engines-oxygen-1.2.2/debian/rules gtk2-engines-oxygen-1.2.2/debian/rules
--- gtk2-engines-oxygen-1.2.2/debian/rules	2012-01-21 20:09:29.000000000 +0100
+++ gtk2-engines-oxygen-1.2.2/debian/rules	2012-04-18 02:18:12.000000000 +0200
@@ -1,15 +1,14 @@
 #!/usr/bin/make -f
 
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined -Wl,--as-needed
+
 %:
 	dh $@ --parallel
 
 override_dh_auto_configure:
 	dh_auto_configure -- \
 		-DDEBIAN_NO_DEMOS=1 \
-		-DCMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT=yes \
-		-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
-		-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
-		-DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed"
+		-DCMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT=yes
 
 override_dh_makeshlibs:
 	dh_makeshlibs -X/usr/lib/$(DEB_HOST_MULTIARCH)/gtk-2.0

Regards,
Simon
-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-kde-extras/attachments/20120418/d67baa8f/attachment-0001.pgp>


More information about the pkg-kde-extras mailing list