[mongodb/el6/master] don't build the source in %install step for the second time and without the right CFLAGS

Dan Horák sharkcz at fedoraproject.org
Fri Sep 24 17:25:02 UTC 2010


commit 2f42e499361e10c99044130b003acb8db5774f04
Author: Dan Horák <dan at danny.cz>
Date:   Fri Sep 24 19:20:50 2010 +0200

    don't build the source in %install step for the second time and without the right CFLAGS

 mongodb.spec |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/mongodb.spec b/mongodb.spec
index f223bc2..49dae6e 100644
--- a/mongodb.spec
+++ b/mongodb.spec
@@ -93,12 +93,12 @@ sed -i 's/\r//' db/resource.h
 sed -i 's/\r//' README
 
 %build
-scons %{?_smp_mflags} --cppflags="%{optflags}"  .
+scons %{?_smp_mflags} --cppflags="%{optflags} -fno-strict-aliasing"  .
 
 
 %install
 rm -rf %{buildroot}
-scons install . --prefix=%{buildroot}%{_prefix} --nostrip --full
+scons install . --cppflags="%{optflags} -fno-strict-aliasing" --prefix=%{buildroot}%{_prefix} --nostrip --full
 
 mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
 


More information about the scm-commits mailing list