|
|
@ -11,12 +11,14 @@ |
|
|
|
# For when some other test needs the C++ main build, including protoc and |
|
|
|
# For when some other test needs the C++ main build, including protoc and |
|
|
|
# libprotobuf. |
|
|
|
# libprotobuf. |
|
|
|
internal_build_cpp() { |
|
|
|
internal_build_cpp() { |
|
|
|
# Install GCC 4.8 to replace the default GCC 4.6. We need 4.8 for more |
|
|
|
if [ $(uname -s) == "Linux" ]; then |
|
|
|
# decent C++ 11 support in order to compile conformance tests. |
|
|
|
# Install GCC 4.8 to replace the default GCC 4.6. We need 4.8 for more |
|
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y |
|
|
|
# decent C++ 11 support in order to compile conformance tests. |
|
|
|
sudo apt-get update -qq |
|
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y |
|
|
|
sudo apt-get install -qq g++-4.8 |
|
|
|
sudo apt-get update -qq |
|
|
|
export CXX="g++-4.8" CC="gcc-4.8" |
|
|
|
sudo apt-get install -qq g++-4.8 |
|
|
|
|
|
|
|
export CXX="g++-4.8" CC="gcc-4.8" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
./autogen.sh |
|
|
|
./autogen.sh |
|
|
|
./configure |
|
|
|
./configure |
|
|
|