diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-06-04 22:21:53 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-07-08 10:33:16 +0000 |
commit | 2768d78391b0892ae1506687cfccdcc9c018077c (patch) | |
tree | 012d1ed97bf484794bf3f2139029a4c253bb2310 /solenv/gbuild/gbuild.mk | |
parent | fdo#73148 add options to Calc function AGGREGATE (diff) | |
download | core-2768d78391b0892ae1506687cfccdcc9c018077c.tar.gz core-2768d78391b0892ae1506687cfccdcc9c018077c.zip |
configure, gbuild: remove Cygwin paths from make environment
All environment variables contain native Win32 paths.
This allows building with Win32 make and Cygwin sh.exe,
but Cygwin make cannot build any more with the Win32 entries in PATH.
Requires adding "bash" detection to configure since /usr/bin/env
can't be invoked by Win32 make and it's possible to install cygwin
somewhere else than C:/cygwin.
Change-Id: Ia8f4ee3c91222e8f5919cfbfc452f12ffbfadd40
Reviewed-on: https://gerrit.libreoffice.org/9698
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'solenv/gbuild/gbuild.mk')
-rw-r--r-- | solenv/gbuild/gbuild.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk index 17a7d8fe0a50..4eed76eebfc6 100644 --- a/solenv/gbuild/gbuild.mk +++ b/solenv/gbuild/gbuild.mk @@ -52,8 +52,12 @@ MAKEFLAGS += r ifdef gb_SHELL SHELL := $(gb_SHELL) else +ifeq ($(OS_FOR_BUILD),WNT) +SHELL := $(shell cygpath -m /bin/sh) +else SHELL := /bin/sh endif +endif true := T false := |