From ae06582867e1a30d3f8ac2641e9f4cca8091b385 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 14 May 2012 12:45:54 -0400 Subject: Change pkg-config files so that both and work Change the include path in the Cflags field so that #include and will work. We had originally used a C flags which allowed to work, but many applications (especially those not using pkg-config) had been using the formulation which didn't require an explicit -I{$includedir} option to the C compiler. If those applications then converted over to pkg-config, and the e2fsprogs libraries were installed with a prefix other than /usr, so that the header files were in some directory such as /usr/local/include, a program that used #include would fail to compile. So change the pkg-config files to include both -I{$includedir} and -I{$includir}/lib. Signed-off-by: "Theodore Ts'o" --- lib/blkid/blkid.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/blkid') diff --git a/lib/blkid/blkid.pc.in b/lib/blkid/blkid.pc.in index b984f6d0..808fe229 100644 --- a/lib/blkid/blkid.pc.in +++ b/lib/blkid/blkid.pc.in @@ -7,5 +7,5 @@ Name: blkid Description: Block device id library Version: @E2FSPROGS_VERSION@ Requires.private: uuid -Cflags: -I${includedir}/blkid +Cflags: -I${includedir}/blkid -I${includedir} Libs: -L${libdir} -lblkid -- cgit v1.2.3