2015-09-03 12:55:05 +00:00
|
|
|
|
HOST_INC_DIR += $(dir $(call select_from_repositories,src/lib/syscall/linux_syscalls.h))
|
2019-12-12 16:15:52 +00:00
|
|
|
|
HOST_INC_DIR += $(dir $(CUSTOM_HOST_CC))/../$(shell $(CUSTOM_HOST_CC) -dumpmachine)/libc/usr/include
|
2011-12-23 13:04:29 +00:00
|
|
|
|
HOST_INC_DIR += /usr/include
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
2013-05-24 09:04:42 +00:00
|
|
|
|
# needed for Ubuntu >= 11.04
|
2019-12-12 16:15:52 +00:00
|
|
|
|
HOST_INC_DIR += /usr/include/$(shell $(CUSTOM_HOST_CC) -dumpmachine)
|
2015-09-17 09:23:19 +00:00
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Explicitly add some well-known paths as the dumpmachine magic above does not
|
|
|
|
|
# suffice on all Linux distros (e.g., Debian Stretch).
|
|
|
|
|
#
|
2011-12-23 13:04:29 +00:00
|
|
|
|
HOST_INC_DIR += /usr/include/i386-linux-gnu
|
2015-09-17 09:23:19 +00:00
|
|
|
|
HOST_INC_DIR += /usr/include/x86_64-linux-gnu
|
2011-12-23 18:21:09 +00:00
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Some header files installed on GNU/Linux test for the GNU compiler. For
|
|
|
|
|
# example, 'stdio.h' might complain with the following error otherwise:
|
|
|
|
|
#
|
|
|
|
|
# /usr/include/stdio.h:432:27: error: expected initializer before ‘throw’
|
|
|
|
|
# /usr/include/stdio.h:488:6: error: expected initializer before ‘throw’
|
|
|
|
|
#
|
|
|
|
|
# By manually defining '_GNU_SOURCE', the header files are processed as
|
|
|
|
|
# expected.
|
|
|
|
|
#
|
|
|
|
|
CC_OPT += -D_GNU_SOURCE
|
|
|
|
|
|