From bb11fc292e76de58165150c5326f194e32075636 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Fri, 5 Jul 2024 13:29:39 +0200 Subject: [PATCH] pclmtoraster: Properly set CFLAGS (#588) As this is a C program, set `pclmtoraster_CFLAGS`, not `pclmtoraster_CXXFLAGS`. This fixes building pclmtoraster when libcupsfilter headers are installed in a non-standard directory. Previously, when configuring and installing libcupsfilters with e.g. `--prefix=$HOME/temp/cpdb` and then configuring cups-filters with `PKG_CONFIG_PATH=$HOME/temp/cpdb/lib/pkgconfig/`, `make pclmtoraster` would fail like this: CC filter/pclmtoraster.o filter/pclmtoraster.c:14:10: fatal error: cupsfilters/filter.h: No such file or directory 14 | #include | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. For this to actually work, recent libcupsfilters commit [1] is also needed: commit 449ac6350d00c385ae226513ef6d85ee81ae161a Author: Michael Weghorn Date: Thu Jul 4 14:44:26 2024 +0200 pkgconfig: Add '-I${includedir}' to Cflags (#57) [1] https://github.com/OpenPrinting/libcupsfilters/commit/449ac6350d00c385ae226513ef6d85ee81ae161a --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index cb24e01ad..0da4b8edc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -371,7 +371,7 @@ imagetoraster_LDADD = \ pclmtoraster_SOURCES = \ filter/pclmtoraster.c -pclmtoraster_CXXFLAGS = \ +pclmtoraster_CFLAGS = \ $(LIBCUPSFILTERS_CFLAGS) \ $(LIBPPD_CFLAGS) \ $(CUPS_CFLAGS) -- 2.47.3