]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
pclmtoraster: Properly set CFLAGS (#588)
authorMichael Weghorn <m.weghorn@posteo.de>
Fri, 5 Jul 2024 11:29:39 +0000 (13:29 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jul 2024 11:29:39 +0000 (13:29 +0200)
commitbb11fc292e76de58165150c5326f194e32075636
tree608475fa9ea51a836ff0350e08517cf0d5e329b2
parent196a892c20d992317cf8bb8c2733808e1d381bb3
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 <cupsfilters/filter.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.

For this to actually work, recent libcupsfilters
commit [1] is also needed:

    commit 449ac6350d00c385ae226513ef6d85ee81ae161a
    Author: Michael Weghorn <m.weghorn@posteo.de>
    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