소스 검색

Hack to make gtest sub-package compile correctly on Sun Studio.

kenton@google.com 16 년 전
부모
커밋
304b731da6
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      configure.ac

+ 3 - 0
configure.ac

@@ -114,6 +114,9 @@ AM_CONDITIONAL([USE_EXTERNAL_PROTOC], [test "$with_protoc" != "no"])
 ACX_PTHREAD
 AC_CXX_STL_HASH
 
+# HACK:  Make gtest's configure script pick up our copy of CXXFLAGS, since the
+#   flags added by ACX_CHECK_SUNCC must be used when compiling gtest too.
+export CXXFLAGS
 AC_CONFIG_SUBDIRS([gtest])
 
 AC_CONFIG_FILES([Makefile src/Makefile protobuf.pc protobuf-lite.pc])