genode/repos/libports/lib/mk/stdcxx.mk
Norman Feske 366bba0227 Exclude higher-level repos from strict warnings
This is a follow-up commit to "Increase default warning level", which
overrides Genode's new default warning level for targets contained in
higher-level repositories. By explicitly whitelisting all those targets,
we can selectively adjust them to the new strictness over time - by
looking out for 'CC_CXX_WARN_STRICT' in the target description files.

Issue #465
2018-01-17 12:14:36 +01:00

30 lines
965 B
Makefile

STDCXX_PORT_DIR := $(call select_from_ports,stdcxx)
include $(REP_DIR)/lib/import/import-stdcxx.mk
# determine location of libstdc++ source tree
STDCXX_DIR := $(STDCXX_PORT_DIR)/src/lib/stdcxx
# enable 'compatibility-atomic-c++0x.cc' to find 'gstdint.h'
REP_INC_DIR += include/stdcxx/bits
# add libstdc++ sources
SRC_CC += $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(STDCXX_DIR)/src/c++11/*.cc)))
# add bits of libsupc++ (most parts are already contained in the cxx library)
SRC_CC += new_op.cc new_opnt.cc new_opv.cc new_opvnt.cc new_handler.cc
SRC_CC += del_op.cc del_opnt.cc del_ops.cc del_opv.cc del_opvnt.cc del_opvs.cc
SRC_CC += bad_array_length.cc bad_array_new.cc bad_cast.cc bad_alloc.cc bad_typeid.cc
SRC_CC += eh_aux_runtime.cc hash_bytes.cc
SRC_CC += tinfo.cc
INC_DIR += $(STDCXX_DIR)/libsupc++
LIBS += stdcxx-c++98 libc libm
vpath %.cc $(STDCXX_DIR)/src/c++11
vpath %.cc $(STDCXX_DIR)/libsupc++
SHARED_LIB = yes
CC_CXX_WARN_STRICT =