From b6ccd032014cdf214e7c8c2b456ca921ba35d8f6 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 28 Feb 2024 04:44:02 +0100 Subject: [PATCH] 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 --- src/libbsd-overlay.pc.in | 1 + 1 file changed, 1 insertion(+) 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