makefiles: Always build the static cross libraries if crosstest is supported.

This commit is contained in:
Alexandre Julliard 2010-07-26 12:13:47 +02:00
parent f195c1eb5a
commit 7d2e7726e7
5 changed files with 12 additions and 18 deletions

View File

@ -47,7 +47,7 @@ $(TESTRESULTS): $(MODULE)$(DLLEXT) ../$(TESTDLL)$(DLLEXT)
# Rules for cross-compiling tests # Rules for cross-compiling tests
crosstest: @CROSSTEST@ crosstest: @CROSSTEST_DISABLE@ $(CROSSTEST)
$(CROSSTEST): $(CROSSOBJS) Makefile.in $(CROSSTEST): $(CROSSOBJS) Makefile.in
$(CROSSWINEGCC) $(CROSSOBJS) -o $@ $(ALL_LIBS) $(CROSSWINEGCC) $(CROSSOBJS) -o $@ $(ALL_LIBS)

6
aclocal.m4 vendored
View File

@ -208,12 +208,8 @@ wine_fn_config_lib ()
wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)" wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)"
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"all __builddeps__: $ac_dir "all __builddeps__: $ac_dir
__buildcrossdeps__: $ac_dir/lib$ac_name.cross.a $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
$ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include
$ac_dir: dummy
@cd $ac_dir && \$(MAKE) @cd $ac_dir && \$(MAKE)
$ac_dir/lib$ac_name.cross.a: dummy
@cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
install install-dev:: $ac_dir install install-dev:: $ac_dir
@cd $ac_dir && \$(MAKE) install @cd $ac_dir && \$(MAKE) install
uninstall:: $ac_dir/Makefile uninstall:: $ac_dir/Makefile

15
configure vendored
View File

@ -646,8 +646,8 @@ X_CFLAGS
XMKMF XMKMF
LIBPTHREAD LIBPTHREAD
CROSSTARGET CROSSTARGET
CROSSTEST
CROSSCC CROSSCC
CROSSTEST_DISABLE
CARBONLIB CARBONLIB
FRAMEWORK_OPENAL FRAMEWORK_OPENAL
COREAUDIO COREAUDIO
@ -6997,7 +6997,9 @@ If you are using Linux, you will need a newer binutils.
" "$LINENO" 5 " "$LINENO" 5
fi fi
if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll" CROSSTEST_DISABLE=\#
if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
then then
case "$host_cpu" in case "$host_cpu" in
i[3456789]86*) i[3456789]86*)
@ -7052,8 +7054,7 @@ test -n "$CROSSCC" || CROSSCC="false"
if test "$CROSSCC" != "false" if test "$CROSSCC" != "false"
then then
CROSSTEST="\$(CROSSTEST)" CROSSTEST_DISABLE=""
set x $CROSSCC set x $CROSSCC
shift shift
target="" target=""
@ -14074,12 +14075,8 @@ wine_fn_config_lib ()
wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)" wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)"
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"all __builddeps__: $ac_dir "all __builddeps__: $ac_dir
__buildcrossdeps__: $ac_dir/lib$ac_name.cross.a $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
$ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include
$ac_dir: dummy
@cd $ac_dir && \$(MAKE) @cd $ac_dir && \$(MAKE)
$ac_dir/lib$ac_name.cross.a: dummy
@cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
install install-dev:: $ac_dir install install-dev:: $ac_dir
@cd $ac_dir && \$(MAKE) install @cd $ac_dir && \$(MAKE) install
uninstall:: $ac_dir/Makefile uninstall:: $ac_dir/Makefile

View File

@ -832,12 +832,13 @@ If you are using Linux, you will need a newer binutils.]
fi fi
dnl Check for cross compiler to build test programs dnl Check for cross compiler to build test programs
if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll" AC_SUBST([CROSSTEST_DISABLE],[\#])
if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
then then
WINE_CHECK_MINGW_PROG(CROSSCC,gcc,false) WINE_CHECK_MINGW_PROG(CROSSCC,gcc,false)
if test "$CROSSCC" != "false" if test "$CROSSCC" != "false"
then then
AC_SUBST(CROSSTEST,"\$(CROSSTEST)") CROSSTEST_DISABLE=""
set x $CROSSCC set x $CROSSCC
shift shift
target="" target=""

View File

@ -12,7 +12,7 @@ INSTALLDIRS = $(DESTDIR)$(dlldir)
@MAKE_RULES@ @MAKE_RULES@
all: $(MODULE:%=lib%.a) all: $(MODULE:%=lib%.a) @CROSSTEST_DISABLE@ $(MODULE:%=lib%.cross.a)
# Rules for .a library # Rules for .a library