diff options
Diffstat (limited to 'winsup/w32api/Makefile.comm.in')
-rw-r--r-- | winsup/w32api/Makefile.comm.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/winsup/w32api/Makefile.comm.in b/winsup/w32api/Makefile.comm.in index 9a1fcf5d0..f1fa70c18 100644 --- a/winsup/w32api/Makefile.comm.in +++ b/winsup/w32api/Makefile.comm.in @@ -43,6 +43,24 @@ WINDRES = @WINDRES@ RANLIB = @RANLIB@ AR = @AR@ +# Depending on if we build as part of winsup or mingw we need to +# add additional include paths in order to get the correct headers +# from the C library. +# +BUILDENV = @BUILDENV@ + +ifeq ($(BUILDENV), cygwin) + # winsup/include + # winsup/../newlib/libc/include + # winsup/../newlib/libc/sys/cygwin + EXTRA_INCLUDES = -I ${top_srcdir}/../include \ + -I ${top_srcdir}/../../newlib/libc/include \ + -I ${top_srcdir}/../../newlib/libc/sys/cygwin +endif +ifeq ($(BUILDENV), mingw) + EXTRA_INCLUDES = -I ${top_srcdir}/../mingw/include +endif + # In spite of its general unsuitability for use on MS-Windows hosts, # Cygwin is able to, and likes to support the $(DESTDIR) capability; # provide a graceful rejection mechanism, for any (non-Cygwin) cases |