genode/qt4/lib/mk/qt_jscore.mk
Norman Feske 1953acae77 qt4: Workarounds for missing C++11 compatibility
Since we switched to using C++11 by default, the webkit-related
parts of qt4 failed to compile because of C++11 compatibility
issues. This patch disables the use of C++11 for the offenders.
2013-11-07 14:58:34 +01:00

26 lines
744 B
Makefile

include $(REP_DIR)/lib/import/import-qt_jscore.mk
SHARED_LIB = yes
# additional defines for the Genode version
CC_OPT += -DSQLITE_NO_SYNC=1 -DSQLITE_THREADSAFE=0
# enable C++ functions that use C99 math functions (disabled by default in the Genode tool chain)
CC_CXX_OPT += -D_GLIBCXX_USE_C99_MATH
# use default warning level to avoid noise when compiling contrib code
CC_WARN =
# some parts of the library are not C++11 compatible
CC_CXX_OPT_STD =
# StackBounds includes Genode headers, which rely on C++11. Hence, we need
# to selectively enable C++11 for this compilation unit.
CC_OPT_StackBounds = -std=gnu++11
include $(REP_DIR)/lib/mk/qt_jscore_generated.inc
include $(REP_DIR)/lib/mk/qt.inc
LIBS += qt_network qt_core libc libm