Skip to content

Commit

Permalink
gcc-11.1.0-0: Export LD_LIBRARY_PATH in profile
Browse files Browse the repository at this point in the history
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: #193
  • Loading branch information
pmenzel committed May 23, 2022
1 parent 75467a3 commit 8cd7df5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gcc-11.1.0-0.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ exec </dev/null
mkdir -p $PREFIX
cat >$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
Expand Down

0 comments on commit 8cd7df5

Please sign in to comment.