Commit c29336fa authored by Billy Laws's avatar Billy Laws Committed by Alexandre Julliard

configure: Stash host LDFLAGS when configuring cross-compilers.

parent 33c8d7b8
......@@ -10591,11 +10591,13 @@ fi
saved_CC=$CC
saved_CFLAGS=$CFLAGS
saved_LDFLAGS=$LDFLAGS
CFLAGS=${CROSSCFLAGS:-"-g -O2"}
LDFLAGS=$CROSSLDFLAGS
eval CC=\$${wine_arch}_CC
eval ${wine_arch}_CFLAGS=\$CFLAGS
eval ${wine_arch}_LDFLAGS=\$CROSSLDFLAGS
eval ${wine_arch}_LDFLAGS=\$LDFLAGS
eval "${wine_arch}_EXTRACFLAGS=\"-D__WINE_PE_BUILD -Wall\""
target=""
......@@ -10699,6 +10701,7 @@ fi
then
CC=$saved_CC
CFLAGS=$saved_CFLAGS
LDFLAGS=$saved_LDFLAGS
continue
fi
as_fn_append PE_ARCHS " $wine_arch"
......@@ -11672,6 +11675,7 @@ fi }
CC=$saved_CC
CFLAGS=$saved_CFLAGS
LDFLAGS=$saved_LDFLAGS
done
if test $HOST_ARCH = aarch64 -a "x$PE_ARCHS" = x
......
......@@ -842,11 +842,13 @@ do
saved_CC=$CC
saved_CFLAGS=$CFLAGS
saved_LDFLAGS=$LDFLAGS
CFLAGS=${CROSSCFLAGS:-"-g -O2"}
LDFLAGS=$CROSSLDFLAGS
AS_VAR_COPY([CC],[${wine_arch}_CC])
AS_VAR_COPY([${wine_arch}_CFLAGS],[CFLAGS])
AS_VAR_COPY([${wine_arch}_LDFLAGS],[CROSSLDFLAGS])
AS_VAR_COPY([${wine_arch}_LDFLAGS],[LDFLAGS])
AS_VAR_SET([${wine_arch}_EXTRACFLAGS],["-D__WINE_PE_BUILD -Wall"])
target=""
......@@ -892,6 +894,7 @@ do
then
CC=$saved_CC
CFLAGS=$saved_CFLAGS
LDFLAGS=$saved_LDFLAGS
continue
fi
AS_VAR_APPEND([PE_ARCHS],[" $wine_arch"])
......@@ -982,6 +985,7 @@ do
CC=$saved_CC
CFLAGS=$saved_CFLAGS
LDFLAGS=$saved_LDFLAGS
done
if test $HOST_ARCH = aarch64 -a "x$PE_ARCHS" = x
......
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