Skip to content

Commit e89259b

Browse files
committed
travis: allow deprecated functions on OSX
1 parent a6762c6 commit e89259b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/configure-ct

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ then
2828
case `uname` in
2929
Darwin)
3030
EXTRA_LIBS="-lresolv"
31+
EXTRA_CPPFLAGS="-Wno-deprecated-declarations"
3132
;;
3233
FreeBSD)
3334
EXTRA_LDFLAGS="${EXTRA_LDFLAGS} -L/usr/local/lib"
@@ -39,7 +40,7 @@ then
3940
;;
4041
esac
4142

42-
./configure GMOCK_DIR=${GMOCK} ${CONFIGURE_FLAGS} PROTOC=${INSTALL_DIR}/bin/protoc PKG_CONFIG_PATH="${INSTALL_DIR}/lib/pkgconfig" CPPFLAGS="-I${INSTALL_DIR}/include -I${PWD}/third_party/objecthash" CXXFLAGS="${CXXFLAGS} ${EXTRA_CXXFLAGS}" LDFLAGS="-L${INSTALL_DIR}/lib -L${PWD}/third_party/objecthash $EXTRA_LDFLAGS" LIBS="${EXTRA_LIBS}" INSTALL_DIR=${INSTALL_DIR} || tail -1000 config.log
43+
./configure GMOCK_DIR=${GMOCK} ${CONFIGURE_FLAGS} PROTOC=${INSTALL_DIR}/bin/protoc PKG_CONFIG_PATH="${INSTALL_DIR}/lib/pkgconfig" CPPFLAGS="-I${INSTALL_DIR}/include -I${PWD}/third_party/objecthash ${EXTRA_CPPFLAGS}" CXXFLAGS="${CXXFLAGS} ${EXTRA_CXXFLAGS}" LDFLAGS="-L${INSTALL_DIR}/lib -L${PWD}/third_party/objecthash $EXTRA_LDFLAGS" LIBS="${EXTRA_LIBS}" INSTALL_DIR=${INSTALL_DIR} || tail -1000 config.log
4344

4445
./config.status --config
4546
fi

0 commit comments

Comments
 (0)