[Libreoffice-commits] core.git: configure.ac

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Sat Oct 31 10:40:21 UTC 2020


 configure.ac |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 7ca79cfca0667b5173fd96889304d98a5fbb2ce2
Author:     Tor Lillqvist <tml at iki.fi>
AuthorDate: Sat Oct 31 11:49:00 2020 +0200
Commit:     Tor Lillqvist <tml at 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 <tml at 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"`


More information about the Libreoffice-commits mailing list