commit 943e9ed21cb1949f950a6f921d59b438cb759ae2 from: Thomas Adam date: Wed Mar 08 09:27:14 2023 UTC portable: configure: flatten LIBS Set LIBS to the empty string so that only the specific dependencies are included where needed, rather than relying on autotools to do this for us. This will make splitting out got into different subprojects easier, as well as allow for multi-packing on those systems which support it. commit - 1ef7c68a194549db7b9f945ef5910cb5394d4cc6 commit + 943e9ed21cb1949f950a6f921d59b438cb759ae2 blob - 9b8bcf405ff91d64b71e3904821a73c4085cb23f blob + 66a5f987364d3134eda0122154ca04ee9767dcc8 --- configure.ac +++ configure.ac @@ -749,9 +749,13 @@ CFLAGS="$SAVED_CFLAGS" AC_SUBST(AM_LDFLAGS) LDFLAGS="$SAVED_LDFLAGS" -if test x"$PLATFORM" = "xopenbsd"; then - LIBS="" -fi +# LIBS is designed to accumulate library dependencies as checks for them are +# peformed, so that this can be included directly to ld(1). +# +# However, this hinders the splitting up of the library dependencies so that +# they're targetted just where they're needed. Flatting LIBS here ensures +# that this happens appropriately. +LIBS="" AH_BOTTOM([#include "got_compat2.h"])