diff options
author | Roland McGrath <roland@hack.frob.com> | 2013-02-08 10:18:52 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2013-02-08 10:26:21 -0800 |
commit | b84660a888f8c6ac5410f7571ee40b120873dc06 (patch) | |
tree | 8eec38435274569e548cbfd5c6e2400ee61e0b46 /Makeconfig | |
parent | 471514d39d03ef96096767651ecce30630e64c1e (diff) | |
download | glibc-b84660a888f8c6ac5410f7571ee40b120873dc06.tar.gz |
Support sysdeps/.../include/ directories.
Diffstat (limited to 'Makeconfig')
-rw-r--r-- | Makeconfig | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Makeconfig b/Makeconfig index 04d7588062..49c5a81a20 100644 --- a/Makeconfig +++ b/Makeconfig @@ -765,11 +765,18 @@ endif # $(+cflags) == "" # Don't duplicate options if we inherited variables from the parent. +cflags := $(sort $(+cflags)) +# Each sysdeps directory can contain header files that both will be +# used to compile and will be installed. Each can also contain an +# include/ subdirectory, whose header files will be used to compile +# but will not be installed, and will take precedence over the +# installed files. This mirrors the top-level include/ subdirectory. ++sysdep-includes := $(foreach dir,$(+sysdep_dirs),\ + $(addprefix -I,$(wildcard $(dir)/include) $(dir))) + # These are flags given to the C compiler to tell it to look for # include files (including ones given in angle brackets) in the parent # library source directory, in the include directory, and in the # current directory. -+sysdep-includes = $(addprefix -I,$(+sysdep_dirs)) +includes = -I$(..)include $(if $(subdir),$(objpfx:%/=-I%)) \ $(+sysdep-includes) $(includes) \ $(patsubst %/,-I%,$(..)) $(libio-include) -I. $(sysincludes) |