Bug#986743: brltty: Please pass -static-libc to UDEB_LDFLAGS on ia64

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.ia64
Message-ID <161810004569.3962333.15933367631768258393.reportbug__39663.9345259004$1618100303$gmane$org@epyc.physik.fu-berlin.de>
Source: brltty
Version: 6.3+dfsg-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: ia64
X-Debbugs-Cc: [email protected]

Hello!

Adrian Bunk has had a go at the FTBFS of brltty on ia64 and he finally found a
solution which is passing -static-libgcc to UDEB_LDFLAGS on ia64:

--- a/brltty-6.3+dfsg/debian/rules      2021-01-28 16:18:34.000000000 +0000
+++ b/brltty-6.3+dfsg/debian/rules      2021-04-11 00:10:47.933611489 +0000
@@ -25,6 +25,9 @@
 DEB_CONFIGURE_OPTIONS = --with-curses=ncursesw --disable-stripping
 
 UDEB_CFLAGS=-Os -fomit-frame-pointer
+ifneq (,$(filter $(DEB_HOST_ARCH), ia64))
+UDEB_LDFLAGS=-static-libgcc
+endif
 UDEB_DISABLE=speech-support pcm-support midi-support fm-support \
        contracted-braille api gpm iconv icu x polkit
 UDEB_CONFIGURE_OPTIONS=--with-braille-driver=-vr,all \
@@ -91,6 +94,7 @@
        cd build-brltty-udeb && \
                $(HARDENING) \
                CFLAGS="$$(DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get CFLAGS) $(UDEB_CFLAGS)" \
+               LDFLAGS="$$(DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get LDFLAGS) $(UDEB_LDFLAGS)" \
                ../configure \
                $(CONFIGURE_OPTIONS) \
                $(UDEB_CONFIGURE_OPTIONS)

This fixes the FTBFS for me (verified on yttrium.debian.net) and should consequently
fix the FTBFS of debian-installer on ia64, too (once src:linux is fixed as well in
kernel version 5.12).

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.