Override result of AC_PROG_LN_S to fix FTBFS on ppc64el
authorOndřej Surý <ondrej@sury.org>
Mon, 3 Jan 2022 14:32:12 +0000 (15:32 +0100)
committerOndřej Surý <ondrej@debian.org>
Thu, 4 Jul 2024 15:15:46 +0000 (17:15 +0200)
Gbp-Pq: Name 0043-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch

configure.ac

index 6ae6ad248977dbd784d7863e29438d9414c2ce81..dc510a3eaaeab65a307d5b8ba747e4e74b238f50 100644 (file)
@@ -135,6 +135,11 @@ AC_PROG_CPP
 AC_USE_SYSTEM_EXTENSIONS
 AC_PROG_LN_S
 
+if test "$LN_S" != "ln -s"; then
+  AC_MSG_WARN([Overriding result of AC_PROG_LN_S, ln -s always works here])
+  LN_S='ln -s'
+fi
+
 if test "$cross_compiling" = yes ; then
   AC_MSG_CHECKING(for native build C compiler)
   AC_CHECK_PROGS(BUILD_CC, [gcc clang c99 c89 cc cl],none)