Comment 17 for bug 1286046

Revision history for this message
In , Yves-Alexis Perez (corsac) wrote :

(In reply to Sean Davis from comment #9)
> Created attachment 5425 [details]
> debian rules which fixes this issue in ubuntu
>
> This debian/rules was created to solve an issue with the Ubuntu packaging.
> It forces the same rules that are applied to debian. Including this
> upstream would be ideal.

@@ -3,6 +3,7 @@

 export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -Wl,-O1
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+export LDFLAGS=-Wl,-z,relro

 %:
  dh $@ --parallel

That doesn't look right. Why not ading that to DEB_LDFLAGS_MAINT_APPEND which is the main point of that?

By the way, on Debian it's already exported by dpkg-buildflags, you might want to check it's the case also on Ubuntu.