Kalle Vahlman ha scritto:
2008/9/9 Claudio Scordino <[EMAIL PROTECTED]>:
I found the problem to be in the "-Wno-poison-system-directories" option in
sb2-init.

I can make sb2-init work if I remove this option.

Maybe gcc 2.95 doesn't support this option ?

Is it _strictly_ necessary ? Can it be safely removed ?

That is a codesourcery toolchain specific option which makes the
warnings about including some (usually) host-system directories in the
include path while cross compiling go away.

I see. However, this doesn't allow to integrate toolchains not from Codesourcery. For instance, I can't integrate my toolchain if I don't remove this option. Instead, if I remove the option and I start using a Codesourcery toolchain, the output is full of warnings (but at least working).

In my opinion, it would be more reasonable to provide the possibility of specifying toolchain-specific options during sb-init.

For instance:

sb2-init <name> -c "-Wno-poison-system-directories" path/to/codesourcery/toolchain

sb2-init <name> path/to/not/codesourcery/toolchain


Otherwise, we should remove the option and tell people using Codesourcery toolchains to add the option to the SBOX_EXTRA_CROSS_COMPILER_ARGS variable in .scratchbox2/<target>/sb2.config

What do you think ?

Thanks,

         Claudio
_______________________________________________
Scratchbox-users mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to