[authconfig] fix linking with libresolv

Tomáš Mráz tmraz at fedoraproject.org
Wed May 30 18:16:57 UTC 2012


commit 4567c6f11dab5cba29fa3fdb784f2d9c1f0e87bf
Author: Tomas Mraz <tmraz at fedoraproject.org>
Date:   Wed May 30 20:16:52 2012 +0200

    fix linking with libresolv

 authconfig.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/authconfig.spec b/authconfig.spec
index 333cbfd..ada9f70 100644
--- a/authconfig.spec
+++ b/authconfig.spec
@@ -1,7 +1,7 @@
 Summary: Command line tool for setting up authentication from network services
 Name: authconfig
 Version: 6.2.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2+
 ExclusiveOS: Linux
 Group: System Environment/Base
@@ -37,7 +37,7 @@ authentication schemes.
 %setup -q -n %{name}-%{version}
 
 %build
-CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
+LDFLAGS="$RPM_OPT_FLAGS -lresolv"; export LDFLAGS
 %configure
 make
 
@@ -125,6 +125,9 @@ authconfig --update --nostart >/dev/null 2>&1 || :
 %{_datadir}/icons/hicolor/256x256/apps/system-config-authentication.*
 
 %changelog
+* Wed May 30 2012 Tomas Mraz <tmraz at redhat.com> - 6.2.2-2
+- fix linking with libresolv
+
 * Tue Mar 27 2012 Tomas Mraz <tmraz at redhat.com> - 6.2.2-1
 - use the new --noac option with ipa-client-install
 - add sss to the services entry in nsswitch.conf


More information about the scm-commits mailing list