svn commit: r392507 - head/Mk/Uses

Baptiste Daroussin bapt at FreeBSD.org
Sun Jul 19 17:24:53 UTC 2015


On Sun, Jul 19, 2015 at 06:05:30PM +0200, Jan Beich wrote:
> Baptiste Daroussin <bapt at FreeBSD.org> writes:
> 
> >   localbase: mostly a non user one which enforce the compiler related flags to
> >              lookup in localbase first to find libraries, designed to be used in
> >              other USES
> [...]
> > +.if !defined(_INCLUDE_USES_LOCALBASE_MK)
> > +_INCLUDE_USES_LOCALBASE_MK=	yes
> > +
> > +CPPFLAGS+=	-I${LOCALBASE}/include
> 
> Better use -isystem to avoid accidentally picking up system headers over
> bundled ones like often happens when a port bundles ffmpeg.
> 

The problem with -isystem is that it will have maby fallouts. and that it is
really not designed for that (for instance it would break any effort on cross
building).

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20150719/70d5c8af/attachment.bin>


More information about the svn-ports-all mailing list