- fix build issue with gcc6

This commit is contained in:
Than Ngo 2016-02-09 14:23:17 +01:00
parent 231d286d41
commit 8cf9135957
1 changed files with 3 additions and 0 deletions

View File

@ -640,6 +640,9 @@ done
# drop -fexceptions from $RPM_OPT_FLAGS
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'`
# workaround for class std::auto_ptr' is deprecated with gcc-6
CXXFLAGS="$CXXFLAGS -std=gnu++98 -Wno-deprecated"
export QTDIR=$PWD
export PATH=$PWD/bin:$PATH
export LD_LIBRARY_PATH=$PWD/lib/