| From b31decac4acb194b020c621d2d11019f636a45e0 Mon Sep 17 00:00:00 2001 |
| From: Khem Raj <raj.khem@gmail.com> |
| Date: Mon, 24 Apr 2017 20:41:25 -0700 |
| Subject: [PATCH] autofs: Upgrade to 5.1.2 release |
| |
| Make configure compatible with -Wl,--as-needed following |
| https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed#Failure_in_..2Fconfigure |
| |
| 2016-07-05 Martin von Gagern |
| |
| --- |
| aclocal.m4 | 6 +++--- |
| 1 file changed, 3 insertions(+), 3 deletions(-) |
| |
| diff --git a/aclocal.m4 b/aclocal.m4 |
| index 0e4a624..2e620cd 100644 |
| --- a/aclocal.m4 |
| +++ b/aclocal.m4 |
| @@ -415,9 +415,9 @@ AC_DEFUN([AF_CHECK_LIBTIRPC], |
| [ |
| # save current flags |
| af_check_libtirpc_save_cflags="$CFLAGS" |
| -af_check_libtirpc_save_ldflags="$LDFLAGS" |
| +af_check_libtirpc_save_libs="$LIBS" |
| CFLAGS="$CFLAGS -I=/usr/include/tirpc" |
| -LDFLAGS="$LDFLAGS -ltirpc" |
| +LIBS="$LIBS -ltirpc" |
| |
| AC_TRY_LINK( |
| [ #include <rpc/rpc.h> ], |
| @@ -440,7 +440,7 @@ AC_CHECK_FUNCS([getrpcbyname getservbyname]) |
| |
| # restore flags |
| CFLAGS="$af_check_libtirpc_save_cflags" |
| -LDFLAGS="$af_check_libtirpc_save_ldflags" |
| +LIBS="$af_check_libtirpc_save_libs" |
| ]) |
| |
| AC_DEFUN([AF_WITH_LIBTIRPC], |