Package: bash
Version: 4.3-12
Severity: minor

Dear Maintainer,

Hello,

Using the rebuilding infrastructure, your package failed to build with clang 
instead of because of linker error.

Error is like this:
http://clang.debian.net/status.php?version=3.6.0&key=LINK_ERROR

Full build log is available here:
http://clang.debian.net/logs/2015-03-25/bash_4.3-12_unstable_clang.log

I found that using ld.gold as linker can fix this problem. So I made a
patch for debian/rules

Thanks,
Joseph

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.4-2-ARCH (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru bash-4.3/debian/rules bash-4.3/debian/rules
--- bash-4.3/debian/rules	2015-01-28 16:55:12.000000000 +0000
+++ bash-4.3/debian/rules	2015-05-20 03:24:37.000000000 +0000
@@ -43,7 +43,9 @@
 CFLAGS := $(shell $(dpkg_buildflags) --get CFLAGS)
 CPPFLAGS := $(shell $(dpkg_buildflags) --get CPPFLAGS)
 LDFLAGS := $(shell $(dpkg_buildflags) --get LDFLAGS)
-
+ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang version"), 1)
+   LDFLAGS += -fuse-ld=gold
+endif

 SHELL	= /bin/bash
 YACC	= bison -y
 

Reply via email to