about summary refs log tree commit diff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules7
1 files changed, 3 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules
index d26ea995..14dece23 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,16 +2,15 @@
 
 include /usr/share/dpkg/architecture.mk
 
-# Without that the tests fail, cannot register existing type 'NMAgentManagerError'
-LDFLAGS=$(shell echo $$LDFLAGS | sed -e 's/-Wl,-Bsymbolic-functions//')
-export LDFLAGS
-
 ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes) $(DEB_HOST_ARCH), yes i386)
    BUILD_PACKAGES += -Nnetwork-manager
 endif
 
 export PYTHON=/usr/bin/python3
 
+# Without this the tests fail, cannot register existing type 'NMAgentManagerError'
+export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
+
 PPPD_PLUGIN_DIR := $(shell dh_ppp --plugin-dir)
 
 %: