diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index 2ecf07aca..3711a72b6 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -209,7 +209,7 @@ EOF PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -lgflags" else if echo "#include \nusing namespace google;\nint main() {}" | \ - $CXX $CFLAGS -x c++ - -o /dev/null ; then + $CXX $CFLAGS -x c++ - -o /dev/null 2> /dev/null; then COMMON_FLAGS="$COMMON_FLAGS -DGFLAGS=google" PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -lgflags" fi