[docs] compile gflags with -fPIC for linking