Friday, July 7, 2017

GCC specs file: how to get the installation path

Leave a Comment

Instead of giving -Wl,-rpath=$HOME/local/gcc52/lib64 to each invocation of GCC 5.2 which I built from the source, I modified its spec file in this way:

*link_command: %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:    %(linker) -rpath=%:getenv(HOME /local/gcc52/lib64) ... 

But this depends on my specific installation under $HOME/local/gcc52. Are there better way to refer to the installation path of the invoked GCC itself?

This manual page did not help me much:

1 Answers

Answers 1

You can try to change the location from the directory

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment