[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

improve cross-compilation guesses for native Windows

From: Bruno Haible
Subject: improve cross-compilation guesses for native Windows
Date: Thu, 13 Jul 2017 21:17:55 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-83-generic; KDE/5.18.0; x86_64; ; )


I'm adding cross-compilation guesses for native Windows, so that cross-
compilation to e.g. mingw using the Debian cross packages should now work

For reference, the way I produced this change is as follows:

1) Determine list of files:

rm -f `find . -name '*~'`
grep -rl AC_RUN_IFELSE m4 | LC_ALL=C sort > files

2) Determine list of modules:

{ for f in `cat files`; do ./gnulib-tool --find $f ; done; (cd modules && ls -1 
*-ieee); } | grep -v '^fchownat$' | LC_ALL=C sort -u > cross-modules

3) Create a testdir:

./gnulib-tool --create-testdir --dir=../testdir-cross --single-configure `cat 

4) Build it with mingw and msvc

5) Collect the configure output log files.

6) Extract the relevant messages.

for f in `cat files` ; do sed -n -e 
's/^.*AC_CACHE_CHECK(\[\([^]]*\).*$/checking \1/p' < $f ; done > msgs

while read msg ; do echo ; echo "grep '$msg...'" ; grep "$msg"'\.\.\.' *.out ; 
done < msgs | grep -v '(cached)' > results

7) Add each respective case to the 'case "$host_os" in ...' statement.

I added the case for native Windows also for those tests where it is the same
as the fallback. This is for maintainaibility: It gives us the freedom to change
the fallback from, say, "guessing no" to "guessing yes", without regressing on
native Windows.


Attachment: 0001-Improve-cross-compilation-guesses-for-native-Windows.patch
Description: Text Data

Attachment: 0002-Improve-cross-compilation-guesses-for-native-Windows.patch
Description: Text Data

Attachment: 0003-Improve-cross-compilation-guesses-for-native-Windows.patch.gz
Description: application/gzip

Attachment: 0004-Revisit-cross-compilation-guesses.patch
Description: Text Data

Attachment: results
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]