Fix build with autoconf 2.70

This commit is contained in:
Sandro Mani 2021-07-25 00:16:54 +02:00
parent b23e54713a
commit 26b8c01dd0
2 changed files with 14 additions and 0 deletions

View File

@ -76,6 +76,8 @@ Patch7: gdal_nopdf.patch
Patch8: %{name}-gcc11.patch
# Drop -diag-disable compile flag
Patch9: gdal_no-diag-disable.patch
# Fix build with autoconf 2.70
Patch10: gdal_autoconf270.patch
BuildRequires: gcc

12
gdal_autoconf270.patch Normal file
View File

@ -0,0 +1,12 @@
diff -rupN gdal-3.3.1-fedora/m4/lib-link.m4 gdal-3.3.1-fedora-new/m4/lib-link.m4
--- gdal-3.3.1-fedora/m4/lib-link.m4 2021-06-28 12:59:14.000000000 +0200
+++ gdal-3.3.1-fedora-new/m4/lib-link.m4 2021-07-24 23:56:17.364927895 +0200
@@ -108,8 +108,6 @@ dnl acl_hardcode_direct,
dnl acl_hardcode_minus_L.
AC_DEFUN([AC_LIB_RPATH],
[
- dnl Tell automake >= 1.10 to complain if config.rpath is missing.
- m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host