--- configure~ 2017-07-28 11:51:24.132793749 +0300 +++ configure 2017-07-28 11:54:16.072792823 +0300 @@ -1704,7 +1704,7 @@ EOF echo "(Qt5 from pkg-config)" >> $LOG FLGQT5=`pkg-config Qt5Core --cflags` # gcc 4.8 is able to compile with C++11 (see also VBOX_GCC_std in Config.kmk) - [ $cc_maj -eq 4 -a $cc_min -eq 8 ] && FLGQT5="$FLGQT5 -std=c++11" + [ $cc_maj -eq 4 -a $cc_min -gt 8 ] || [ $cc_maj -gt 4 ] && FLGQT5="$FLGQT5 -std=c++11" INCQT5=`strip_I "$FLGQT5"` LIBDIR5=`pkg-config Qt5Core --variable=libdir` LIBQT5=`pkg-config Qt5Core --libs`