From 50164336afbd9918c558cc48883c1b5002ca1373 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Thu, 17 Sep 2015 11:23:19 +0200 Subject: [PATCH] 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 --- repos/base-linux/lib/import/import-syscall.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repos/base-linux/lib/import/import-syscall.mk b/repos/base-linux/lib/import/import-syscall.mk index 066ef6861c..f093c2d67f 100644 --- a/repos/base-linux/lib/import/import-syscall.mk +++ b/repos/base-linux/lib/import/import-syscall.mk @@ -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