mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-26 17:01:07 +00:00
72e31090ee
Fixes #1520
27 lines
962 B
Makefile
27 lines
962 B
Makefile
STDCXX_INCLUDE_DIR := $(call select_from_repositories,include/stdcxx)
|
|
|
|
INC_DIR += $(STDCXX_INCLUDE_DIR) \
|
|
$(STDCXX_INCLUDE_DIR)/std \
|
|
$(STDCXX_INCLUDE_DIR)/c_std \
|
|
$(STDCXX_INCLUDE_DIR)/c_global
|
|
|
|
STDCXX_PORT_INCLUDE_DIR := $(call select_from_ports,stdcxx)/include/stdcxx
|
|
INC_DIR += $(STDCXX_PORT_INCLUDE_DIR) \
|
|
$(STDCXX_PORT_INCLUDE_DIR)/std \
|
|
$(STDCXX_PORT_INCLUDE_DIR)/c_std \
|
|
$(STDCXX_PORT_INCLUDE_DIR)/c_global
|
|
|
|
LIBS += libc libm
|
|
include $(call select_from_repositories,lib/import/import-libc.mk)
|
|
|
|
# prevent gcc headers from defining mbstate
|
|
CC_OPT += -D_GLIBCXX_HAVE_MBSTATE_T
|
|
|
|
# use compiler-builtin atomic operations
|
|
CC_OPT += -D_GLIBCXX_ATOMIC_BUILTINS_4
|
|
|
|
# GCC's stddef.h defines the 'max_align_t' type, which is used in the 'cstddef'
|
|
# C++ header file. libc's version of stddef.h shadows GCC's version, so it is
|
|
# included explicitly here.
|
|
CC_OPT += -include $(LIBGCC_INC_DIR)/stddef.h
|