libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix archiver @FILE support test


From: Ralf Wildenhues
Subject: Re: Fix archiver @FILE support test
Date: Tue, 31 Aug 2010 18:49:51 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

Hi Peter,

* Peter Rosin wrote on Tue, Aug 31, 2010 at 01:44:00PM CEST:
> Microsoft lib prints a failure message though. I assume other
> archivers are not unlikely to also do so...
> 
> Pushing the attached as obvious.

AC_TRY_EVAL already redirects stderr in config.log, and that was quite
helpful when debugging the macro recently.  Why not, instead of your
patch, redirect stdout also >&AS_MESSAGE_LOG_FD?

Thanks,
Ralf

> Subject: [PATCH] Silence archiver output when testing @file support.
> 
> * libltdl/m4/libtool.m4 (_LT_PROG_AR): Redirect stdout and stderr
> to the bit bucket when testing for @file support.

> --- a/libltdl/m4/libtool.m4
> +++ b/libltdl/m4/libtool.m4
> @@ -1360,7 +1360,7 @@ AC_CACHE_CHECK([for archiver @FILE support], 
> [lt_cv_ar_at_file],
>    [lt_cv_ar_at_file=no
>     AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
>       [echo conftest.$ac_objext > conftest.lst
> -      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst'
> +      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >/dev/null 2>&1'
>        AC_TRY_EVAL([lt_ar_try])
>        if test "$ac_status" -eq 0; then
>       # Ensure the archiver fails upon bogus file names.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]