configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) New commits: commit 7ca79cfca0667b5173fd96889304d98a5fbb2ce2 Author: Tor Lillqvist <t...@iki.fi> AuthorDate: Sat Oct 31 11:49:00 2020 +0200 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Sat Oct 31 11:39:46 2020 +0100
Set CPPFLAGS instead of the INCLUDE environment variable INCLUDE is not exported from WSL to Win32 programs without including it in the list of environment variable names in the WSLENV environment variable, and I think we want to minimize the number that need to be mentioned there. Should not affect Cygwin builds. Change-Id: I0af480873badac446305e396b69eec360eb8a270 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105098 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <t...@collabora.com> diff --git a/configure.ac b/configure.ac index a79458301f9b..e0a72723eaeb 100644 --- a/configure.ac +++ b/configure.ac @@ -3967,7 +3967,8 @@ if test "$_os" = "WINNT"; then # Remove /cl.exe from CC case insensitive AC_MSG_NOTICE([found Visual C++ $vcyear]) - export INCLUDE=`cygpath -d "$COMPATH/Include"` + main_include_dir=`cygpath -d -m "$COMPATH/Include"` + CPPFLAGS="$CPPFLAGS -I$main_include_dir" PathFormat "$COMPATH" COMPATH=`win_short_path_for_make "$formatted_path"` _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits