[atanks] Fix OPTFLAGS.

Jon Ciesla limb at fedoraproject.org
Mon Apr 23 17:18:31 UTC 2012


commit 4870157556590d8f0d88a4b200925d032c493602
Author: Jon Ciesla <limburgher at gmail.com>
Date:   Mon Apr 23 12:18:22 2012 -0500

    Fix OPTFLAGS.

 atanks.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/atanks.spec b/atanks.spec
index bc08467..bfe8ced 100644
--- a/atanks.spec
+++ b/atanks.spec
@@ -1,6 +1,6 @@
 Name:           atanks
 Version:        5.4
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Remake of a classic DOS game "Scorched Earth"
 
 Group:          Amusements/Games
@@ -25,10 +25,11 @@ is the winner.
 %prep
 %setup -q
 
+sed -i -e s/OFLAGSS/OFLAGS/ src/Makefile
 #%patch1 -p1 -b .add-lpthread
 
 %build
-CFLAGS="%{optflags}" make %{?_smp_mflags}
+make %{?_smp_mflags} OFLAGS="%{optflags}" LFLAGS="$RPM_LD_FLAGS"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -78,6 +79,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Apr 23 2012 Jonathan Ciesla <limburgher at gmail.com> - 5.4-2
+- Fix OPTFLAGS, BZ 815393.
+
 * Tue Apr 10 2012 Jonathan Ciesla <limburgher at gmail.com> - 5.4-1
 - New upstream.
 - pthread patch upstreamed.


More information about the scm-commits mailing list