[mongodb] add -fPIC to the build scons call as well

Nathaniel McCallum npmccallum at fedoraproject.org
Fri Oct 8 19:57:18 UTC 2010


commit 08b5b183548133831a3d59e3361b14498fb87836
Author: Nathaniel McCallum <nathaniel at natemccallum.com>
Date:   Fri Oct 8 15:57:25 2010 -0400

    add -fPIC to the build scons call as well

 mongodb.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/mongodb.spec b/mongodb.spec
index 123d008..e6a456e 100644
--- a/mongodb.spec
+++ b/mongodb.spec
@@ -4,7 +4,7 @@
 %global         daemon mongod
 Name:           mongodb
 Version:        1.6.3
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        High-performance, schema-free document-oriented database
 Group:          Applications/Databases
 License:        AGPLv3 and zlib and ASL 2.0
@@ -96,7 +96,7 @@ sed -i 's/\r//' db/resource.h
 sed -i 's/\r//' README
 
 %build
-scons %{?_smp_mflags} --cppflags="%{optflags} -fno-strict-aliasing" .
+scons %{?_smp_mflags} --cppflags="%{optflags} -fno-strict-aliasing -fPIC" .
 
 
 %install
@@ -186,6 +186,9 @@ fi
 %{_libdir}/libmongoclient.a
 
 %changelog
+* Fri Oct 08 2010 Nathaniel McCallum <nathaniel at natemccallum.com> - 1.6.3-4
+- Put -fPIC onto both the build and install scons calls
+
 * Fri Oct 08 2010 Nathaniel McCallum <nathaniel at natemccallum.com> - 1.6.3-3
 - Define _initddir when it doesn't exist for el5 and others
 


More information about the scm-commits mailing list