Package: wireless-tools Version: 30~pre9-12 Severity: minor Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu artful ubuntu-patch
Hi Guus, In Ubuntu, we have applied the attached patch to wireless-tools in order for the upstream build to be compatible with the Ubuntu toolchain which uses -Wl,--as-needed by default - as described at <https://wiki.ubuntu.com/ToolChain/CompilerFlags#A-Wl.2C--as-needed>. While this flag is not enabled by default in Debian, it is useful both to downstreams such as Ubuntu where it is enabled, and to developers experimenting with other toolchains for building (e.g. ld.gold, or clang). Please consider including this patch in the Debian package as well. Thanks, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
diff -Nru wireless-tools-30~pre9/debian/patches/compiler-link-order.patch wireless-tools-30~pre9/debian/patches/compiler-link-order.patch --- wireless-tools-30~pre9/debian/patches/compiler-link-order.patch 1969-12-31 16:00:00.000000000 -0800 +++ wireless-tools-30~pre9/debian/patches/compiler-link-order.patch 2017-04-27 20:58:38.000000000 -0700 @@ -0,0 +1,13 @@ +Index: wireless-tools-30~pre9-12ubuntu1/Makefile +=================================================================== +--- wireless-tools-30~pre9-12ubuntu1.orig/Makefile ++++ wireless-tools-30~pre9-12ubuntu1/Makefile +@@ -150,7 +150,7 @@ + + # Compilation of the dynamic library + $(DYNAMIC): $(OBJS:.o=.so) +- $(CC) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $(LIBS) $(LDFLAGS) -lc $^ ++ $(CC) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $^ $(LIBS) $(LDFLAGS) -lc + + # Compilation of the static library + $(STATIC): $(OBJS:.o=.so) diff -Nru wireless-tools-30~pre9/debian/patches/series wireless-tools-30~pre9/debian/patches/series --- wireless-tools-30~pre9/debian/patches/series 2016-03-24 13:14:05.000000000 -0700 +++ wireless-tools-30~pre9/debian/patches/series 2017-04-27 20:58:38.000000000 -0700 @@ -5,3 +5,4 @@ add-import-type-to-udev-rules fix-typos improve-make-install +compiler-link-order.patch