mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 06:29:32 +02:00
* search for i386-linux-gcc also by trying i686-linux- as prefix as
apparently for newer gcc -m32 does not return the proper libgcc path anymore
This commit is contained in:
parent
41c2a2069a
commit
20884fdc1b
@ -3076,6 +3076,9 @@ var
|
||||
GccExecutable := ExeSearch(AddProgramExtension(CrossPrefix+'gcc', OS),Sysutils.GetEnvironmentVariable('PATH'));
|
||||
if not(FileExists(GccExecutable)) then
|
||||
GccExecutable := ExeSearch(AddProgramExtension(CrossPrefix+'gnu-gcc', OS),Sysutils.GetEnvironmentVariable('PATH'));
|
||||
{ ugly hack to find gcc on newer linuxes }
|
||||
if not(FileExists(GccExecutable)) and (CrossPrefix='i386-linux-') then
|
||||
GccExecutable := ExeSearch(AddProgramExtension('i686-linux-gnu-gcc', OS),Sysutils.GetEnvironmentVariable('PATH'));
|
||||
if FileExists(GccExecutable) then
|
||||
begin
|
||||
{$ifdef HAS_UNIT_PROCESS}
|
||||
|
@ -1 +1 @@
|
||||
'2023-03-27 hash 327aac7f24'
|
||||
'2023-06-19 hash 193550945c'
|
||||
|
Loading…
Reference in New Issue
Block a user