-isystem in pc(5) (was: Packaging liba2i, a new library I wrote, for Gentoo)

Alejandro Colomar alx at kernel.org
Tue Feb 27 17:27:18 UTC 2024


Hi!

On Tue, Feb 27, 2024 at 06:15:38PM +0100, Guillem Jover wrote:
> 
> Notice how the libbsd.pc file uses -I, while libbsd-overlay.pc uses
> -isystem to make it behave as if it was part of the system, help with
> the include_next magic, and give it less priority than user supplied
> include directories. But, yeah otherwise I don't think this is an
> option normal libraries should be using.

Ahh, makes sense.  Thanks!

BTW, I'm a bit puzzled about this:

	$ pkg-config --path libbsd
	/usr/lib/x86_64-linux-gnu/pkgconfig/libbsd.pc
	$ grep Cflags <$(pkg-config --path libbsd)
	Cflags: -I${includedir}
	$ pkg-config --cflags libbsd

	$ echo $?
	0

Why is there no output at all?


Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libbsd/attachments/20240227/92bd4314/attachment.sig>


More information about the libbsd mailing list