Build system using autoconf and make.
Find a file
Mihai Moldovan 315d242ebe buildsys.mk.in: reorder ${{,FRAMEWORK_}LIBS} and ${LDFLAGS}.
${LDFLAGS} often contains additional (system) library directories that
also often contain old/already installed versions of the libraries to be
linked and are passed via ${{,FRAMEWORK_}LIBS}. While
${{,FRAMEWORK_}LIBS} pretty much always contains -Llocal_build_dir to
make the linker/compiler pick the newly built library for the later
referenced libraries, that location will be overridden and the build
system hence eventually tries to link against the old system library.

This issue is not seen often on Linux-based systems (since they don't
need to supply additional system library directories), but abundant on
others.

For instance, on macOS with MacPorts, LDFLAGS contains -L${prefix}/lib
(with /opt/local being the default prefix).

This leads to link calls such as these:

$LD ... -L${prefix}/lib ... -L../dependent_library -ldependent_library ...

which will, sadly, pick libdependent_library from ${prefix}/lib if the
software has been previously installed there.

Reordering both variables will lead to local library directories appear
earlier on the command line and hence have a higher priority, fixing the
issue.
2020-03-10 06:35:51 +01:00
m4 Make use of -include again 2020-02-19 00:52:12 +01:00
autogen.sh Add a default autogen.sh. 2011-09-21 21:33:03 +02:00
buildsys.mk.in buildsys.mk.in: reorder ${{,FRAMEWORK_}LIBS} and ${LDFLAGS}. 2020-03-10 06:35:51 +01:00
configure.ac Do not automatically call AC_CONFIG_COMMANDS_* 2014-02-24 03:55:15 +01:00