From 8cd7df54726ae239be40a6a932bca3de2d2d4dcd Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 23 May 2022 14:31:36 +0200 Subject: [PATCH] gcc-11.1.0-0: Export `LD_LIBRARY_PATH` in profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit C++ programs often need the libraries, so add them to the profile. LLVM/clang already does that. The existing profiles have been updated after the build, so also add the line to the build script of the newest GCC release in the tree, so it’ won’t be forgotten. Resolves: https://github.molgen.mpg.de/mariux64/pkg-scripts/issues/193 --- gcc-11.1.0-0.build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc-11.1.0-0.build.sh b/gcc-11.1.0-0.build.sh index 7b730c5..efeb34f 100755 --- a/gcc-11.1.0-0.build.sh +++ b/gcc-11.1.0-0.build.sh @@ -26,6 +26,7 @@ exec $PREFIX/profile <<-EOF PATH=$PREFIX/bin:\$PATH + export LD_LIBRARY_PATH=$PREFIX/lib\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi EOF . $PREFIX/profile