[tlbuild] --host is not passed to ICU
Mojca Miklavec
mojca.miklavec.lists at gmail.com
Mon May 1 16:59:24 CEST 2017
Hi,
I tried to cross-compile TL with some of the flags that I have
shamelessly "stolen" from LuaTeX's build script (not sure if those
C[XX]FLAGS actually make sense):
NAME=x86_64-w64-mingw32
export CC=${NAME}-gcc
export CXX=${NAME}-g++
export RANLIB=${NAME}-ranlib
export STRIP=${NAME}-strip
export CFLAGS="-mtune=nocona -g -O3 -fno-lto -fno-use-linker-plugin ${CFLAGS}"
export CXXFLAGS="-mtune=nocona -g -O3 -fno-lto -fno-use-linker-plugin
${CXXFLAGS}"
export LDFLAGS="${LDFLAGS} -fno-lto -fno-use-linker-plugin
-static-libgcc -static-libstdc++"
./Build -C --host=${NAME} --build=x86_64-apple-darwin
but the build fails because --host does not proliferate to icu-native
(it does reach configuration of other libraries though).
/opt/local/bin/gmkdir -p icu-native
=== configuring in icu-native (/path/to/Build/source/Work/libs/icu/icu-native)
make: running /bin/sh
'/path/to/Build/source/Work/libs/icu/../../../libs/icu'/icu-src/source/configure
--enable-static --disable-shared --disable-extras --disable-samples
--disable-tests -C --disable-dyload --disable-layout --disable-strict
--build=x86_64-apple-darwin11 --host=x86_64-apple-darwin11
--disable-icuio
configure: creating cache config.cache
checking for ICU version numbers... release 58.2, library 58.2,
unicode version 9.0
checking build system type... x86_64-apple-darwin11
checking host system type... x86_64-apple-darwin11
checking whether to build debug libraries... no
checking whether to build release libraries... yes
checking for x86_64-apple-darwin11-gcc... x86_64-w64-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... configure: error: in
`/path/to/Build/source/Work/libs/icu/icu-native':
configure: error: cannot run C compiled programs.
Mojca
More information about the tlbuild
mailing list