--- fpc/compiler/options.pas- 2005-05-05 14:53:55 +0000 +++ fpc/compiler/options.pas 2005-10-15 16:58:10 +0000 @@ -2039,6 +2039,12 @@ begin {$ELSE USE_SYSUTILS} fpcdir:=FixPath(getenv('FPCDIR'),false); {$ENDIF USE_SYSUTILS} +{$ifdef x86_64} + if (fpcdir='') and PathExists('/usr/lib64/fpc2/') then + fpcdir:='/usr/lib64/fpc2/'; +{$endif} + if (fpcdir='') and PathExists('/usr/lib/fpc2/') then + fpcdir:='/usr/lib/fpc2/'; if fpcdir='' then begin if PathExists('/usr/local/lib/fpc/'+version_string) then