[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#803474: src:systemd: Please use the default linker instead of gold on sparc64



Control: tags -1 patch

On 10/30/2015 04:26 PM, John Paul Adrian Glaubitz wrote:
> On 10/30/2015 01:59 PM, John Paul Adrian Glaubitz wrote:
>> Could you please change the build system (e.g. rules file) such that it uses
>> ld/bfd on *both* sparc *and* sparc64 (we are planning to ressurrect sparc
>> in the future)?
> 
> More specific, please re-apply this patch [1] and extend it for sparc64
> as well:

Attaching a suggested patch.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- debian/rules.org	2015-10-09 12:54:59.000000000 +0200
+++ debian/rules	2015-10-30 16:45:06.317724651 +0100
@@ -16,6 +16,13 @@
 export DEB_BUILD_PROFILES += noudeb
 endif
 
+# Linking systemd with the gold linker on sparc/sparc64 currently breaks
+# linking of other binaries against systemd's shared libraries due to a
+# limitation in gold on these architectures (binutils PR target/19019).
+ifneq (,$(findstring $(DEB_BUILD_ARCH), sparc sparc64))
+    LD=ld
+endif
+
 CONFFLAGS = \
 	--with-rootprefix= \
 	--with-rootlibdir=/lib/$(DEB_HOST_MULTIARCH) \

Reply to: