[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 08a4e87 1/3: Set $LMI_HOST even for cygwin
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 08a4e87 1/3: Set $LMI_HOST even for cygwin |
Date: |
Sat, 20 Apr 2019 18:57:13 -0400 (EDT) |
branch: master
commit 08a4e872ebe5f332a311e148ceec9f34a0c63c18
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Set $LMI_HOST even for cygwin
$LMI_HOST indicates the '--host' triplet. It has hitherto been globally
defined only for cross-compilation, and until recently the presence of
a global definition had accordingly although regrettably been used to
distinguish between native (cygwin) and cross (debian) msw builds; but
that regrettable practice is no longer followed. Thus, it is now safe
to define $LMI_HOST globally on all build platforms, as may be seen by
examining every use throughout lmi:
Files not used with cygwin:
gwc/.zshrc
msw_generic.make
Applicable code not reachable with cygwin:
configuration.make
$LMI_HOST locally defined if not in global environment:
install_libxml2_libxslt.make
install_wx.sh
install_wxpdfdoc.sh
A global $LMI_HOST will be needed for cygwin with gcc-8:
workhorse.make
The present commit of course doesn't introduce a variable into the
global environment, but it comes close, by setting $LMI_HOST in the
'install_msw.sh' script that invokes the other scripts and makefiles
used for building lmi.
---
install_msw.sh | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/install_msw.sh b/install_msw.sh
index 7a1f7bc..f335c77 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -190,14 +190,13 @@ then
# For Cygwin, install and use this msw-native compiler.
rm --force --recursive /MinGW_
make $coefficiency --output-sync=recurse -f install_mingw.make
-else
- # For real *nix, set LMI_HOST to specify a cross compiler.
- export LMI_HOST=i686-w64-mingw32
fi
make $coefficiency --output-sync=recurse -f install_miscellanea.make clobber
make $coefficiency --output-sync=recurse -f install_miscellanea.make
+export LMI_HOST=i686-w64-mingw32
+
make $coefficiency --output-sync=recurse -f install_libxml2_libxslt.make
./install_wx.sh