During the build on Linux with shared libraries enabled, libtool will
generate wrapper scripts for files like src/cups/cups-genppd.5.2.
Those scripts, among other things, adjust LD_LIBRARY_PATH to enable
loading of the same libraries used for the current build.
But LD_LIBRARY_PATH only mentions directories, not individual
libraries. For that reason, order plays a major role. In order to
function correctly, the gutenprint build must ensure that the
libgutenprint.so generated during the current build of gutenprint is
used. If an already installed older version is used instead, errors
like unresolved symbols might occur.
For this reason, it is important that the list of libraries, as passed
to libtool when linking binaries, does mention $(GUTENPRINT_LIBS)
before any other libs, particularly before $(CUPS_LIBS) which is known
to sometimes cause the addition of /usr/lib to LD_LIBRARY_PATH.