From: Guillem Jover Date: Wed, 28 Feb 2024 03:44:02 +0000 (+0100) Subject: build: Add a comment to libbsd-overlay.pc about -isystem usage X-Git-Tag: 0.12.1~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6ccd032014cdf214e7c8c2b456ca921ba35d8f6;p=thirdparty%2Flibbsd.git build: Add a comment to libbsd-overlay.pc about -isystem usage Add the reasoning for why we use -isystem instead of -I, to avoid confusing unsuspecting readers of the file. Prompted-by: Alejandro Colomar --- diff --git a/src/libbsd-overlay.pc.in b/src/libbsd-overlay.pc.in index 0455f22..7ef4e4d 100644 --- a/src/libbsd-overlay.pc.in +++ b/src/libbsd-overlay.pc.in @@ -9,4 +9,5 @@ Version: @VERSION@ URL: https://libbsd.freedesktop.org/ Libs: -L${libdir} -lbsd Libs.private: @LIBBSD_LIBS@ @MD5_LIBS@ +# We use -isystem instead of -I due the overlay via #include_next usage. Cflags: -isystem ${includedir}/bsd -DLIBBSD_OVERLAY