linux: explicitly add well-known include paths

Unfortunately, the 'gcc -dumpmachine' magic does not suffice on all
Linux distros, so we just add the well-known paths for i386-linux-gnu
and x86_64-linux-gnu.

Fixes #1694
This commit is contained in:
Christian Helmuth 2015-09-17 11:23:19 +02:00
parent 0f052357ef
commit 50164336af
1 changed files with 6 additions and 0 deletions

View File

@ -3,7 +3,13 @@ HOST_INC_DIR += /usr/include
# needed for Ubuntu >= 11.04
HOST_INC_DIR += /usr/include/$(shell gcc -dumpmachine)
#
# Explicitly add some well-known paths as the dumpmachine magic above does not
# suffice on all Linux distros (e.g., Debian Stretch).
#
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