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, 7 May 2026 18:39:09 +0000 (20:39 +0200)
Gbp-Pq: Name 0038-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch

configure.ac

index f150f1b22ae09d2793935d90c36374ea17e529a6..2a21f3e0a4221154bde372142b5cb698fef0fb7f 100644 (file)
@@ -122,6 +122,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
+
 AS_VAR_IF([cross_compiling], [yes],
   [AC_CHECK_PROGS([BUILD_CC], [gcc clang c99 c89 cc cl], [none])
     AC_MSG_CHECKING([for native build C compiler])