diff -Nru gtk-d-3.3.1/debian/changelog gtk-d-3.3.1/debian/changelog --- gtk-d-3.3.1/debian/changelog 2016-07-17 19:49:56.000000000 +0200 +++ gtk-d-3.3.1/debian/changelog 2016-08-29 15:16:09.000000000 +0200 @@ -1,3 +1,10 @@ +gtk-d (3.3.1-3) unstable; urgency=medium + + * Fix build failures related to missing fPIC and + added LDFLAGS. + + -- Gianfranco Costamagna Mon, 29 Aug 2016 15:15:45 +0200 + gtk-d (3.3.1-2) unstable; urgency=medium * no-bitness-hardcoding.patch: Don't hardcode -m diff -Nru gtk-d-3.3.1/debian/patches/series gtk-d-3.3.1/debian/patches/series --- gtk-d-3.3.1/debian/patches/series 2016-07-17 19:48:56.000000000 +0200 +++ gtk-d-3.3.1/debian/patches/series 2016-08-29 15:09:05.000000000 +0200 @@ -1,2 +1,3 @@ 01_multiarch-paths.patch 02_no-bitness-hardcoding.patch +use-pic-everywhere.patch diff -Nru gtk-d-3.3.1/debian/patches/use-pic-everywhere.patch gtk-d-3.3.1/debian/patches/use-pic-everywhere.patch --- gtk-d-3.3.1/debian/patches/use-pic-everywhere.patch 1970-01-01 01:00:00.000000000 +0100 +++ gtk-d-3.3.1/debian/patches/use-pic-everywhere.patch 2016-08-29 15:13:29.000000000 +0200 @@ -0,0 +1,14 @@ +Description: This patch forces fPIC everywhere, fixing build failures where fPIC is needed (static libraries) +Author: Matthias Klumpp + +--- gtk-d-3.3.1.orig/GNUmakefile ++++ gtk-d-3.3.1/GNUmakefile +@@ -190,7 +190,7 @@ $(BINNAME_DEMO): $(OBJECTS_DEMO) + ####################################################################### + + %.o : %.d +- $(DC) $(DCFLAGS) $(IMPORTS) -c $< $(output) ++ $(DC) $(DCFLAGS) $(FPIC) $(IMPORTS) -c $< $(output) + + %.pic.o : %.d + $(DC) $(DCFLAGS) $(FPIC) $(IMPORTS) -c $< $(output) diff -Nru gtk-d-3.3.1/debian/rules gtk-d-3.3.1/debian/rules --- gtk-d-3.3.1/debian/rules 2016-07-17 19:48:59.000000000 +0200 +++ gtk-d-3.3.1/debian/rules 2016-08-29 15:14:21.000000000 +0200 @@ -9,6 +9,8 @@ # ldc2: Unknown command line argument '-Wl,-z,relro'. Try: 'ldc2 -help' export DEB_BUILD_MAINT_OPTIONS=hardening=-relro +# ldc2: Unknown command line argument '-Wl,-Bsymbolic-functions'. Try: 'ldc2 -help' +export LDFLAGS %: dh $@ --parallel --with gnome