From 0cc63f0bbe531d60271d9cc127fe248028e97727 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Tue, 7 Mar 2023 22:10:42 +0000 Subject: [PATCH] build-sys: work around broken cross-compiles on Debian MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit See #2102 Signed-off-by: Thomas Weißschuh --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) 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="" -- 2.47.3