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)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 20 Jul 2023 18:02:54 +0000 (18:02 +0000)
Gbp-Pq: Name 0043-Override-result-of-AC_PROG_LN_S-to-fix-FTBFS-on-ppc6.patch

configure.ac

index b73a3a3dbd1a29e495ff140a56e269a1927db9c5..841c00942c0bbd74e10851c79724304d8cc2c764 100644 (file)
@@ -133,6 +133,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)