Include /usr/share/dpkg/buildflags.mk and use DPKG_EXPORT_BUILDFLAGS in debian/rules...
[sven/mysqltcl.git] / debian / rules
index 292ecc9d063aa148a5ffe9810833e11ba1f83f2c..571e38bc4bed55b9304517452dc1286437f52e60 100755 (executable)
@@ -3,7 +3,9 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-LDFLAGS += -Wl,-z,defs -Wl,--as-needed
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 %: