[gdmap] Don't override all of CFLAGS with -lm, append it to LDFLAGS instead - thanks to Ville Skytt�

mebourne mebourne at fedoraproject.org
Sat Jul 28 10:17:38 UTC 2012


commit 1a46d572248590bcf4251697ee68d7524a251cc4
Author: Martin Ebourne <martin at zepler.org>
Date:   Sat Jul 28 19:46:49 2012 +0930

    Don't override all of CFLAGS with -lm, append it to LDFLAGS instead - thanks to Ville Skyttä

 gdmap.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gdmap.spec b/gdmap.spec
index 64052bc..c7f90a7 100644
--- a/gdmap.spec
+++ b/gdmap.spec
@@ -1,6 +1,6 @@
 Name:	gdmap
 Version:	0.8.1
-Release:	12%{?dist}
+Release:	13%{?dist}
 Summary:	A tool which allows to visualize disk space
 
 Group:	Applications/System
@@ -27,8 +27,8 @@ visualize a complete folder or even the whole hard drive with one picture.
 %patch2 -p2
 
 %build
-%configure
-make %{?_smp_mflags} CFLAGS="-lm"
+LDFLAGS="$RPM_LD_FLAGS -lm" %configure
+make %{?_smp_mflags}
 
 
 %install
@@ -61,6 +61,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sat Jul 28 2012 Martin Ebourne <martin at zepler.org> - 0.8.1-13
+- Don't override all of CFLAGS with -lm, append it to LDFLAGS instead - thanks to Ville Skyttä
+
 * Wed Jul 25 2012 Patrick Uiterwijk <puiterwijk at gmail.com> - 0.8.1-12
 - Fixing build
 


More information about the scm-commits mailing list