On Sat, Aug 12, 2006 at 11:40:20PM +0200, Joerg Schilling wrote:
> Gavin Maltby <[EMAIL PROTECTED]> wrote:
> 
> > Joerg Schilling wrote:
> >
> > > 
> > > This would make OpenSolaris more stable even in the non-cross compilation
> > > case. Note that OpenSolaris does use /usr/include from the host system 
> > > instead 
> > > of using the include files that are specific to the current build
> ...
> > There is an obscure compiler switch that can stop it automatically
> > appending /usr/include to the search path.  If we dig that
> > up (I have it in email from a few years back if all else fails)
> > then we could force compile errors for ON when it uses something
> > from the host system.
> 
> This should be:
> 
> -YI,<dir>       Change default directory searched for include files
> 
> 
> But note that then you will need to add some more include files (e.g. those 
> from libm) to ON.

Or put them into a reference directory;  the wad I've put together creates a
symlink farm in <WS>/usr/src/wosref to the "allowed" external dependencies,
then adds -YI,.../usr/src/wosref/usr/include.  Same with libraries.

That way, only allowed external dependencies can be used.

Cheers,
- jonathan

> J?rg
> 
> -- 
>  EMail:[EMAIL PROTECTED] (home) J?rg Schilling D-13353 Berlin
>        [EMAIL PROTECTED]                (uni)  
>        [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
>  URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

-- 
Jonathan Adams, Solaris Kernel Development
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to