puzzled by gcc and cc1

For everything that's not in any way related to PureBasic. General chat etc...
jack
Addict
Addict
Posts: 1336
Joined: Fri Apr 25, 2003 11:10 pm

puzzled by gcc and cc1

Post by jack »

I am puzzled, how did Fred alter the gcc search path for cc1?
the search path is "hard-wired" when the toolchain is built, gcc is in the bin folder and cc1 is in libexec/gcc/some-mingw/gcc-version
I tried a file compare but it found no difference between the gcc in the pbcompiler directory and the one in the mingw distribution
how can the versions be identical and yet behave differently?
firace
Addict
Addict
Posts: 899
Joined: Wed Nov 09, 2011 8:58 am

Re: puzzled by gcc and cc1

Post by firace »

Found this:

Code: Select all

Directories searched by the compiler driver for executables (cc1, as, ...): 



GCC directories 
 
$(libexecdir)/gcc/$(target)/$(version) 
 

$(libexecdir)/gcc/$(target) 
 

$(libdir)/gcc/$(target)/$(version) 
 

$(libdir)/gcc/$(target) 
 

Toolchain directories 
 
$(tooldir)/bin/$(target)/$(version) 
 

$(tooldir)/bin 
 

https://wiki.debian.org/Multiarch/Libra ... tory_paths
jack
Addict
Addict
Posts: 1336
Joined: Fri Apr 25, 2003 11:10 pm

Re: puzzled by gcc and cc1

Post by jack »

thank you firace, good reference however the mystery remains
Post Reply