diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index 073953dd4..ef446bf7e 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -46,7 +46,13 @@ COMMON_FLAGS="-DROCKSDB_PLATFORM_POSIX" if [ -d /mnt/gvfs/third-party -a -z "$CXX" ]; then FBCODE_BUILD="true" if [ -z "$USE_CLANG" ]; then - source $PWD/build_tools/fbcode.gcc481.sh + CENTOS_VERSION=`rpm -q --qf "%{VERSION}" \ + $(rpm -q --whatprovides redhat-release)` + if [ "$CENTOS_VERSION" = "6" ]; then + source $PWD/build_tools/fbcode.gcc481.sh + else + source $PWD/build_tools/fbcode.gcc471.sh + fi else source $PWD/build_tools/fbcode.clang31.sh fi