From: CryptoManiac Date: Sat, 17 Oct 2015 19:42:53 +0000 (+0300) Subject: Don't use c++0x. X-Git-Tag: nvc-v0.5.5~16 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=9b9454a448ecf58ef77afb83cdb6f24b2d410130 Don't use c++0x. --- diff --git a/src/leveldb/build_detect_platform b/src/leveldb/build_detect_platform index a1101c1..336bf1d 100755 --- a/src/leveldb/build_detect_platform +++ b/src/leveldb/build_detect_platform @@ -190,19 +190,7 @@ if [ "$CROSS_COMPILE" = "true" ]; then true else CXXOUTPUT="${TMPDIR}/leveldb_build_detect_platform-cxx.$$" - - # If -std=c++0x works, use as fallback for when memory barriers - # are not available. - $CXX $CXXFLAGS -std=c++0x -x c++ - -o $CXXOUTPUT 2>/dev/null < - int main() {} -EOF - if [ "$?" = 0 ]; then - COMMON_FLAGS="$COMMON_FLAGS -DLEVELDB_PLATFORM_POSIX -DLEVELDB_ATOMIC_PRESENT" - PLATFORM_CXXFLAGS="-std=c++0x" - else - COMMON_FLAGS="$COMMON_FLAGS -DLEVELDB_PLATFORM_POSIX" - fi + COMMON_FLAGS="$COMMON_FLAGS -DLEVELDB_PLATFORM_POSIX" # Test whether tcmalloc is available $CXX $CXXFLAGS -x c++ - -o $CXXOUTPUT -ltcmalloc 2>/dev/null <