[mongodb] Use -g1 instead of -g (reduce memory usage)
Marek Skalický
mskalick at fedoraproject.org
Fri Feb 20 07:38:38 UTC 2015
commit 7fe427a3894e5431e03509441a8dec205424cbd4
Author: Marek Skalický <mskalick at redhat.com>
Date: Fri Feb 20 08:37:31 2015 +0100
Use -g1 instead of -g (reduce memory usage)
mongodb.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/mongodb.spec b/mongodb.spec
index f512886..da73328 100644
--- a/mongodb.spec
+++ b/mongodb.spec
@@ -129,7 +129,7 @@ the MongoDB sources.
sed -i -r "s|(conf.FindSysLibDep\(\"yaml\", \[\"yaml)(\"\]\))|\1-cpp\2|" SConstruct
# Use optflags and __global_ldflags, disable -fPIC
-(opt=$(echo "%{?optflags}" | sed -r -e 's| |","|g' )
+(opt=$(echo "%{?optflags}" | sed -r -e 's|-g |-g1 |g' | sed -r -e 's| |","|g' )
sed -i -r -e "s|(CCFLAGS=\[)\"-fPIC\"|\1\"$opt\"|" SConstruct)
(opt=$(echo "%{?__global_ldflags}" | sed -r -e 's| |","|g' )
sed -i -r -e "s|(LINKFLAGS=\[)\"-fPIC\"|\1\"$opt\"|" SConstruct)
More information about the scm-commits
mailing list