blob: 18ce193855f4c198b047dbf7de1d98322e372e3c [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From b31decac4acb194b020c621d2d11019f636a45e0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 24 Apr 2017 20:41:25 -0700
4Subject: [PATCH] autofs: Upgrade to 5.1.2 release
5
Brad Bishop6e60e8b2018-02-01 10:27:11 -05006Make configure compatible with -Wl,--as-needed following
7https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed#Failure_in_..2Fconfigure
8
92016-07-05 Martin von Gagern
10
Brad Bishop316dfdd2018-06-25 12:45:53 -040011---
12 aclocal.m4 | 6 +++---
13 1 file changed, 3 insertions(+), 3 deletions(-)
14
15diff --git a/aclocal.m4 b/aclocal.m4
16index 0e4a624..2e620cd 100644
17--- a/aclocal.m4
18+++ b/aclocal.m4
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019@@ -415,9 +415,9 @@ AC_DEFUN([AF_CHECK_LIBTIRPC],
20 [
21 # save current flags
22 af_check_libtirpc_save_cflags="$CFLAGS"
23-af_check_libtirpc_save_ldflags="$LDFLAGS"
24+af_check_libtirpc_save_libs="$LIBS"
25 CFLAGS="$CFLAGS -I=/usr/include/tirpc"
26-LDFLAGS="$LDFLAGS -ltirpc"
27+LIBS="$LIBS -ltirpc"
28
29 AC_TRY_LINK(
30 [ #include <rpc/rpc.h> ],
Brad Bishop316dfdd2018-06-25 12:45:53 -040031@@ -440,7 +440,7 @@ AC_CHECK_FUNCS([getrpcbyname getservbyname])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050032
33 # restore flags
34 CFLAGS="$af_check_libtirpc_save_cflags"
35-LDFLAGS="$af_check_libtirpc_save_ldflags"
36+LIBS="$af_check_libtirpc_save_libs"
37 ])
38
39 AC_DEFUN([AF_WITH_LIBTIRPC],