mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Improve test_for_mingw
- change test so that both tested programs must work, not only the exit code of the last one - make it cross-compile compatible git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19101 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
4a4190f261
commit
b4ebe56020
@ -142,11 +142,10 @@ function inst_dtk() {
|
||||
}
|
||||
|
||||
function test_for_mingw() {
|
||||
${CC} --version
|
||||
${LD} --help
|
||||
if [ "$CROSS_COMPILE" != "yes" ]; then
|
||||
g++ --version
|
||||
mingw32-make --help
|
||||
if [ "$CROSS_COMPILE" == "yes" ]; then
|
||||
${CC} --version && ${LD} --help
|
||||
else
|
||||
g++ --version && mingw32-make --help
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user