]> git.ipfire.org Git - thirdparty/gcc.git/commit
driver: Try to read spec from gcc_exec_prefix if possible
authorKito Cheng <kito.cheng@sifive.com>
Tue, 10 Jun 2025 03:17:45 +0000 (11:17 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 13 Jun 2025 01:27:40 +0000 (09:27 +0800)
commit59fbc99f8ee35fc1a7bcae4bed3e7bfaec38b538
treece95a83831c74ec0efeca89b055e62c2d64d2709
parent11059b4a4e8d4a19e7b554817f7cf0f68e3d54bb
driver: Try to read spec from gcc_exec_prefix if possible

GCC will try to read the spec file from the directory where it is
installed, but it should try to read from gcc_exec_prefix rather than
standard_exec_prefix, because the latter is not the right one if
compiler has been relocated into other places other than the path
specfied at configuration time.

gcc/ChangeLog:

* gcc.cc (driver::set_up_specs): Use gcc_exec_prefix to
read the spec file rather than standard_exec_prefix.
gcc/gcc.cc