mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 00:11:07 +00:00
7a8ad10ffd
Move the definition of '_GNU_SOURCE' from 'import-lx_hybrid.mk' to 'import-syscall.mk' because this definition may (potentially) affect all programs that include Linux headers installed on the host - not only hybrid Linux/Genode programs. Fixes #52
20 lines
653 B
Makefile
20 lines
653 B
Makefile
HOST_INC_DIR += $(dir $(call select_from_repositories,src/platform/linux_syscalls.h))
|
||
HOST_INC_DIR += /usr/include
|
||
|
||
# needed for Ubuntu 11.04
|
||
HOST_INC_DIR += /usr/include/i386-linux-gnu
|
||
HOST_INC_DIR += /usr/include/x86_64-linux-gnu
|
||
|
||
#
|
||
# 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
|
||
|