[rcssserver] Use CPPFLAGS instead of CXXFLAGS

Hedayat Vatankhah hedayat at fedoraproject.org
Sat Feb 12 21:13:32 UTC 2011


commit 5d6f89830446c760cdef6948d6b2d99ca7a4605c
Author: Hedayat Vatankhah <hedayat.fwd at gmail.com>
Date:   Sun Feb 13 00:42:55 2011 +0330

    Use CPPFLAGS instead of CXXFLAGS

 rcssserver.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/rcssserver.spec b/rcssserver.spec
index 225c67e..fb4b6f0 100644
--- a/rcssserver.spec
+++ b/rcssserver.spec
@@ -1,6 +1,6 @@
 Name:           rcssserver
 Version:        14.0.3
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Robocup 2D Soccer Simulation Server
 
 Group:          Applications/System
@@ -65,7 +65,7 @@ sed -i.rpath -e '/sys_lib_search_path_spec/s| /usr/lib| /lib64 /usr/lib64 /usr/l
 %configure
 sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
 #%{?_smp_mflags} doesn't work
-make CXXFLAGS="-DBOOST_FILESYSTEM_VERSION=2"
+make CPPFLAGS="-DBOOST_FILESYSTEM_VERSION=2"
 
 %install
 rm -rf %{buildroot}
@@ -98,6 +98,9 @@ rm -rf %{buildroot}
 %{_datadir}/applications/*
 
 %changelog
+* Sun Feb 13 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog at gmail.com> - 14.0.3-6
+- Use CPPFLAGS instead of CXXFLAGS to avoid overwriting RPM flags
+
 * Thu Feb 10 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog at gmail.com> - 14.0.3-5
 - Use the old Boost::FileSystem in Boost 1.46
 


More information about the scm-commits mailing list