
|
[openbeos]
||
[Date Prev]
[05-2003 Date Index]
[Date Next]
||
[Thread Prev]
[05-2003 Thread Index]
[Thread Next]
[openbeos] Re: compiler option -nostdinc
- From: "Marcus Overhagen" <ml@xxxxxxxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Wed, 07 May 2003 02:09:34 GMT
> Hi there,
>
> I just wanted to ask why we are using the -nostdinc option, and what's
> the purpose behind it.
I added it, the purpose was to make the whole compiling of all
sources independant of any headers from the host system
(Windows, Linux or BeOS)
> I think we initially used it to prevent gcc from including the Be
> headers - but (as we already found out long ago) that's not what this
Yes,
> option does. It prevents the headers from the gcc tool chain to be
> used.
Why is this a bad thing? Are you sure that the headers from the
gcc tool chain are needed?
> And while we are able to build OpenBeOS with this option on the x86
> platform, I cannot see a reason why we would like to replace the gcc
> headers with our own; AFAICT there is no advantage, but it causes
> trouble when trying to build it on other platforms.
You are only thinking of gcc here, why does it have it own headers at all?
What happens if we would like to compile with openwatcom or Intel compiler,
do they also have their own haeders?
> Does anybody mind or have reasons to mind when I remove that?
I wouldn't mind, but are you sure that this is the correct way?
> AFAICT it doesn't have any side effects to the build on x86 (just did a
> full build).
Most likely because you build on BeOS, what happens on other platforms
with different gcc headers?
Marcus
|

|