diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index dfe89963a8..5d2434539a 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -184,6 +184,7 @@ EOF EOF if [ "$?" = 0 ]; then COMMON_FLAGS="$COMMON_FLAGS -DGFLAGS" + PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -lgflags" fi # Test whether zlib library is installed