From 40b261086d9d7c3996d0340caaf476d2c51e302a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 11 Apr 2017 12:47:12 +0200 Subject: [PATCH] package/debian: disable -Bsymbolic-functions as it breaks Interconnect. --- package/debian/rules | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/debian/rules b/package/debian/rules index fe11ffd4a..73e4abe3b 100755 --- a/package/debian/rules +++ b/package/debian/rules @@ -1,5 +1,15 @@ #!/usr/bin/make -f +# For some crappy reason Ubuntu includes this flag by default when building deb +# packages. This breaks signal/slot connections across *.sos in +# Corrade::Interconnect library (which may affect for example connecting the +# signals to Application interfaces) and as said on the links below, it has +# some noticeable unintended/dangerous effects as well, so I'm just disabling +# it globally. See: +# http://stackoverflow.com/questions/7216973/is-there-a-downside-to-using-bsymbolic-functions +# https://software.intel.com/en-us/articles/performance-tools-for-software-developers-bsymbolic-can-cause-dangerous-side-effects +export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions + %: dh $@ --parallel