--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: wireless-tools: Please update Makefile for compatibility with -Wl,--as-needed
- From: Steve Langasek <steve.langasek@canonical.com>
- Date: Thu, 27 Apr 2017 21:15:14 -0700
- Message-id: <149335291406.24324.2481888609465181173.reportbug@virgil.dodds.net>
Package: wireless-tools
Version: 30~pre9-12
Severity: minor
Tags: patch
User: ubuntu-devel@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/
slangasek@ubuntu.com vorlon@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
--- End Message ---
--- Begin Message ---
- To: 861372-done@bugs.debian.org
- Subject: Re: Bug#861372: wireless-tools: Please update Makefile for compatibility with -Wl,--as-needed
- From: Colin Watson <cjwatson@debian.org>
- Date: Wed, 24 Jul 2024 11:43:18 +0100
- Message-id: <ZqDaxmCjXcr3Gkb9@riva.ucam.org>
- In-reply-to: <149335291406.24324.2481888609465181173.reportbug@virgil.dodds.net>
- References: <149335291406.24324.2481888609465181173.reportbug@virgil.dodds.net>
Source: wireless-tools
Source-Version: 30~pre9-13.1
On Thu, Apr 27, 2017 at 09:15:14PM -0700, Steve Langasek wrote:
> 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.
It wasn't quite the same patch, but something similar was applied in
Debian some time back, and it looks like the corresponding Ubuntu patch
has been dropped in response:
wireless-tools (30~pre9-13.1) unstable; urgency=medium
* Non-maintainer upload.
* Fix ftbfs. (Closes: #925857)
- Thanks Reiner Herrmann.
-- Sudip Mukherjee <sudipm.mukherjee@gmail.com> Fri, 13 Mar 2020 20:33:27 +0000
Thanks,
--
Colin Watson (he/him) [cjwatson@debian.org]
--- End Message ---