In article <7dcc047f-e848-8578-a80a-3fa5400fe...@lessthan3.org.uk>,
   Chris Johns <ch...@lessthan3.org.uk> wrote:
> Hello

> I am sure this has come up before, but is there any option to get GCC 
> running natively on RISC OS to use use a 'flat' file layout? eg. "foo/c" 
> rather than a file called foo in the 'c' directory.

> I can use gcc -xc foo/c, but if it does a #include "foo.h" it won't find 
> foo/h.

> Cheers

> Chris

I have updated my flattened version of GCC to 4.7.4 release5 however,
at the moment binaries still need to have
set unixenv$foo$sfix ""
to stop failures if encountering the usual suspects, c h etc.

Probably will try and get a directory of patches required for the
recipe files somewhere in the autobuilder sometime.

A ready to go GCC (flattened version) is here:
https://drive.google.com/open?id=1vVdJ3Ze7m4urZ8zaNnO49M8Sy6MVPDO3
should work with wget or netsurf otherwise the through the hoops link is
https://drive.google.com/file/d/1vVdJ3Ze7m4urZ8zaNnO49M8Sy6MVPDO3/view?usp=sharing

There is a longstanding issue with the gccsdk where you cannot turn
off (the default) sfixing with the riscos_control as advertised.

The default list of directories can be changed with the environment
variable.
I the recipe, there appears to be two approaches, one for mlibscl, one
for unixlib so both would need doing, the unixlib may be as simple as
setting the default to "" but the mlibscl one is more convoluted, maybe
it was taken from norcroft code originally, I dont know.

Ronald May


_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to