Friday, 30 January 2015

Re: [gccsdk] make: File '-c' not found

In message <cb70628e54.beeb@ron1954.woosh.co.nz>
Ron <beeb@woosh.co.nz> wrote:


> I'm pretty sure the -c thing is because your Makefile SHELL variable is resolving to something that doesn't understand the -c switch.
> I think the default for /bin/bash is just the RISC OS CLI unless you add a ported shell and adjust the path accordingly.
>
> You could try the existing port of bash, or email me for a copy of the slimmer dash, which I found (recently) to work well with make.
>
> If you are using a Linux style Makefile there may be other commands you find missing.
>

From the gnu make manual

'The program used as the shell is taken from the variable SHELL. If this
variable is not set in your makefile, the program /bin/sh is used as the
shell. The argument(s) passed to the shell are taken from the variable
.SHELLFLAGS. The default value of .SHELLFLAGS is -c normally, or -ec in
POSIX-conforming mode.'

You may see a difference just by using (in the makefile)

.SHELLFLAGS =

Ron M.

_______________________________________________
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

No comments:

Post a Comment