Commit c7bd6865 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Use CROSSLDFLAGS as flags for cross-compiler tests.

parent c954e5b9
......@@ -9621,6 +9621,7 @@ test -n "$CROSSCC" || CROSSCC="false"
then
ac_save_CC="$CC"
saved_CFLAGS=$CFLAGS
saved_LDFLAGS=$LDFLAGS
CROSSCFLAGS=${CROSSCFLAGS:-"-g -O2"}
EXTRACROSSCFLAGS="-DWINE_CROSS_PE -Wall"
......@@ -9629,6 +9630,7 @@ test -n "$CROSSCC" || CROSSCC="false"
CC="$CROSSCC"
CFLAGS=$CROSSCFLAGS
LDFLAGS=$CROSSLDFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
$as_echo_n "checking whether $CROSSCC works... " >&6; }
if ${wine_cv_crosscc+:} false; then :
......@@ -10676,6 +10678,7 @@ fi
fi
CFLAGS=$saved_CFLAGS
LDFLAGS=$saved_LDFLAGS
CC="$ac_save_CC"
fi
fi
......
......@@ -951,12 +951,14 @@ then
then
ac_save_CC="$CC"
saved_CFLAGS=$CFLAGS
saved_LDFLAGS=$LDFLAGS
AC_SUBST(CROSSCFLAGS,${CROSSCFLAGS:-"-g -O2"})
AC_SUBST(EXTRACROSSCFLAGS,"-DWINE_CROSS_PE -Wall")
AC_SUBST(CROSSLDFLAGS)
CC="$CROSSCC"
CFLAGS=$CROSSCFLAGS
LDFLAGS=$CROSSLDFLAGS
AC_CACHE_CHECK([whether $CROSSCC works], wine_cv_crosscc,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],[wine_cv_crosscc=yes],[wine_cv_crosscc=no])])
if test $wine_cv_crosscc = yes
......@@ -1051,6 +1053,7 @@ then
fi
CFLAGS=$saved_CFLAGS
LDFLAGS=$saved_LDFLAGS
CC="$ac_save_CC"
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment