From: Thomas Weißschuh Date: Tue, 7 Mar 2023 22:10:42 +0000 (+0000) Subject: build-sys: work around broken cross-compiles on Debian X-Git-Tag: v2.39-rc1~9^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0cc63f0bbe531d60271d9cc127fe248028e97727;p=thirdparty%2Futil-linux.git build-sys: work around broken cross-compiles on Debian See #2102 Signed-off-by: Thomas Weißschuh --- diff --git a/configure.ac b/configure.ac index d631b062d2..ace1515c5a 100644 --- a/configure.ac +++ b/configure.ac @@ -2780,6 +2780,14 @@ AC_ARG_VAR([ADJTIME_PATH], AS_IF([test "x$ADJTIME_PATH" = x], [ADJTIME_PATH="/etc/adjtime"]) AC_DEFINE_UNQUOTED([CONFIG_ADJTIME_PATH], "$ADJTIME_PATH", [Path to hwclock adjtime file]) +if test "x${build_alias}" != "x${host_alias}"; then + AC_MSG_NOTICE([setting link_all_deplibs=unknown for libtool]) + # work around Debian patch to libtool breaking cross-compiles + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702737 + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=297726 + link_all_deplibs=unknown +fi + LIBS=""