Skip to content

Instantly share code, notes, and snippets.

@andreaseger
Created June 8, 2011 08:57
Show Gist options
  • Save andreaseger/1014056 to your computer and use it in GitHub Desktop.
Save andreaseger/1014056 to your computer and use it in GitHub Desktop.
mongodb compiling fix for ubuntu
From da09184386aedaddd091e497a283b68585f3b634 Mon Sep 17 00:00:00 2001
From: Eger Andreas <experteer@eger-andreas.de>
Date: Wed, 8 Jun 2011 09:36:56 +0200
Subject: [PATCH 167/167] compiling fix for ubuntu
Signed-off-by: Eger Andreas <experteer@eger-andreas.de>
---
SConstruct | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/SConstruct b/SConstruct
index 41383b1..83a83d8 100644
--- a/SConstruct
+++ b/SConstruct
@@ -671,7 +671,7 @@ if nix:
env.Append( CPPFLAGS="-fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch" )
# env.Append( " -Wconversion" ) TODO: this doesn't really work yet
if linux:
- env.Append( CPPFLAGS=" -Werror " )
+ #env.Append( CPPFLAGS=" -Werror " )
env.Append( CPPFLAGS=" -fno-builtin-memcmp " ) # glibc's memcmp is faster than gcc's
env.Append( CXXFLAGS=" -Wnon-virtual-dtor " )
env.Append( LINKFLAGS=" -fPIC -pthread -rdynamic" )
--
1.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment