diff options
author | Christophe Milard <christophe.milard@linaro.org> | 2015-07-27 19:38:34 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-07-29 16:03:13 +0300 |
commit | b9feb72a32e0186f1eb5da309b43891644a1e7f6 (patch) | |
tree | 1f98028cc943d97a7a4447c9881cd3f888b2b594 /test/validation | |
parent | ec387564d9e4dbd3f32c8f3eb5b6254d7778801a (diff) |
test: removing current dir from -I
The goal of this patch is to remove the src directory
and current directory from the standard include search
path (gcc -I<path>), so that #include <...> and #include "..."
actually search different locations.
This enables standard filenames (such as errno.h) to be used
locally.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test/validation')
-rw-r--r-- | test/validation/Makefile.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/validation/Makefile.inc b/test/validation/Makefile.inc index ac8081404..49efbda98 100644 --- a/test/validation/Makefile.inc +++ b/test/validation/Makefile.inc @@ -2,6 +2,11 @@ include $(top_srcdir)/test/Makefile.inc COMMON_DIR = $(top_builddir)/test/validation/common +#the following option ensure that option '-I.' is not passed to gcc, +#therefore distinguishing between '#include "X"' and '#include <X>'. +#It allows common filenames (such as 'errno.h') to be used locally. +AUTOMAKE_OPTIONS = nostdinc + AM_CFLAGS += -I$(top_srcdir)/test/validation/common AM_LDFLAGS += -static |