[Freemint-list] When cross compiling native gcc, 'include-fixed' contains stuff from /usr

Thorsten Otto admin at tho-otto.de
Mon Sep 25 01:51:20 MSD 2017


On Sonntag, 24. September 2017 23:25:37 CEST Miro Kropáček wrote:
> Native compiler only. 

Maybe its better to build a native compiler really on MiNT, even if it might take 
some time.

>or just as a standalone Canadian cross, it's actually more or less the same 
>process.

host and target are the same, so that is not really a canadian cross.

>I think that --prefix=/usr confuses the script to think that I am really >installing a 
system compiler even though --host and --target say otherwise.

I didn't try yet, but i think it should be possible to configure the native compiler with 
a different prefix, and then later install it to /usr. All the relevant lookups for 
libraries, compiler passes etc are done with relative paths like /usr/lib/gcc/m68k-
atari-mint/4.6.4/../../../../m68k-atari-mint/lib/m68k-atari-mint/4.6.4/
I think there are no hardcoded paths that are not adjusted like this since it is 
compiled with --disable-nls.

>Will experiment, thanks for all your suggestions!

I think there are only 2 solutions, either let fixincludes run and then remove 
everything but limits.h + syslimits.h from that directory, or disable fixincludes, and 
create those files manually. In either case that should be done for both the cross 
and the native compilers.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.atariforge.org/pipermail/freemint-list/attachments/20170924/70ec9466/attachment.html 


More information about the Freemint-list mailing list