]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: work around broken cross-compiles on Debian
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 7 Mar 2023 22:10:42 +0000 (22:10 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 8 Mar 2023 15:48:30 +0000 (15:48 +0000)
See #2102

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
configure.ac

index d631b062d280ee31cc05a69464d979641972480c..ace1515c5ae190131a72fea092e62a16c9b84168 100644 (file)
@@ -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=""