Skip to content

Commit a12456a

Browse files
committed
Use LIBRARY_PATH to have ld look for libgccjit at link time
LD_LIBRARY_PATH is used at runtime whereas LIBRARY_PATH is used during linking. Without it, I get: = note: /usr/bin/ld: cannot find -lgccjit collect2: error: ld returned 1 exit status during the `cargo rustc` in `test.sh`
1 parent ad14919 commit a12456a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test.sh

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ set -e
66
export GCC_PATH=$(cat gcc_path)
77

88
export LD_LIBRARY_PATH="$GCC_PATH"
9+
export LIBRARY_PATH="$GCC_PATH"
10+
911
if [[ "$1" == "--release" ]]; then
1012
export CHANNEL='release'
1113
CARGO_INCREMENTAL=1 cargo rustc --release

0 commit comments

Comments
 (0)