From 704fffcfb11d1b41e276bbb52624c393ff7e4428 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Wed, 31 Jul 2019 17:11:08 +0100 Subject: GCC: libstdc++ has a link to libiconv After adding the libiconv library to the template, the C++ library uses three of its functions (`libiconv', `libiconv_open' and `libiconv_close'). However, it doesn't explicity link with it inside its shared library! I tried by exporting `LIBS=-liconv' before the GCC configure script but it crashed as soon as it went on to the second GCC building stage (because this environment variable was no longer present there). I also tried adding the C++ configure option of `--enable-cstdio' to the GCC configure options (so it doesn't use iconv according to the manual), but it made no change. With this commit, as a brute-force solution, `patchelf --add-needed' is run on the installed `libstdc++.so', so `libiconv.so' is explicitly included inside the `libstdc++' shared library. This bug was found by Roberto Baena Galle while trying to load Matplotlib (which needed the C++ library). This fixes bug #56702. --- .file-metadata | Bin 6468 -> 6123 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to '.file-metadata') diff --git a/.file-metadata b/.file-metadata index 2dfb5d6..28f008f 100644 Binary files a/.file-metadata and b/.file-metadata differ -- cgit v1.2.1