Skip to content

Commit

Permalink
Add -Wno-deprecated-declarations for compatiblity
Browse files Browse the repository at this point in the history
Newer compilers warn about deprecated declarations, breaking the
build since all warnings are treated as errors.

Disable warnings about deprecated declarations, add -O2 (at least)
since it seems there's no way to append CXXFLAGS.
  • Loading branch information
wjoel committed Oct 13, 2016
1 parent cd0d0f7 commit 25a7db8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-mesos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ fi

if [ ! -d ../mesos-install ]; then
cd build
../configure --prefix=$PWD/../../mesos-install --enable-install-module-dependencies
../configure CXXFLAGS='-O2 -Wno-deprecated-declarations' \
--prefix=$PWD/../../mesos-install --enable-install-module-dependencies
make -j 6 V=0
make install
fi

0 comments on commit 25a7db8

Please sign in to comment.