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
crosstest: @CROSSTEST@
crosstest: @CROSSTEST_DISABLE@ $(CROSSTEST)
$(CROSSTEST): $(CROSSOBJS) Makefile.in
$(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_append_rule ALL_MAKEFILE_DEPENDS \
"all __builddeps__: $ac_dir
__buildcrossdeps__: $ac_dir/lib$ac_name.cross.a
$ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include
$ac_dir: dummy
$ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
@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
@cd $ac_dir && \$(MAKE) install
uninstall:: $ac_dir/Makefile

15
configure vendored
View File

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

View File

@ -832,12 +832,13 @@ If you are using Linux, you will need a newer binutils.]
fi
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
WINE_CHECK_MINGW_PROG(CROSSCC,gcc,false)
if test "$CROSSCC" != "false"
then
AC_SUBST(CROSSTEST,"\$(CROSSTEST)")
CROSSTEST_DISABLE=""
set x $CROSSCC
shift
target=""

View File

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