nvm, got it with sudo ln -s /usr/local/lib/libgomp.spec /lib/x86_64-pc-linux-gnu/13.2.0/libgomp.spec (need sudo mkdir -p /lib/x86_64-pc-linux-gnu/13.2.0/)
strace -e trace=access gcc -fopenmp -o hello hello.c results: (he looks everywhere but local)
access("/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.0/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/13.2.0/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../x86_64-pc-linux-gnu/lib/../lib/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../x86_64-pc-linux-gnu/13.2.0/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../lib/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/lib/x86_64-pc-linux-gnu/13.2.0/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/lib/../lib/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/x86_64-pc-linux-gnu/13.2.0/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/../lib/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../../x86_64-pc-linux-gnu/lib/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/tmp/tcloop/gcc/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/13.2.0/../../../libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/lib/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/libgomp.spec", R_OK) = -1 ENOENT (No such file or directory)