#18 Fix library order to mention GUTENPRINT_LIBS before CUPS_LIB

open
nobody
None
5
2011-09-15
2011-09-15
No

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[64] to LD_LIBRARY_PATH.

References:
* https://bugs.gentoo.org/382027
* https://bugs.gentoo.org/382927

Discussion

  • Fix changing library order

     
    Attachments