This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Move bench target into benchtests


On 04/10/2013 11:39 PM, Siddhesh Poyarekar wrote:
> On Thu, Apr 11, 2013 at 12:04:23AM +0200, Andreas Schwab wrote:
>> Siddhesh Poyarekar <siddhesh@redhat.com> writes:
>>
>>> +run-bench = $(test-wrapper-env) \
>>> +	    GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
>>> +	    $($*-ENV) $(run-via-rtld-prefix) $${run}
>>
>> You cannot use $(run-via-rtld-prefix) here.  It uses built-program-file
>> which assumes that $(word 2,$^) is the program binary.
>>
> 
> Right, how about this patch to first fix this.  I'll do the
> move on top of this.
> 
> Siddhesh
> 
> commit e8051d2923fb87214c3a641a7b495eb4315e8f53
> Author: Siddhesh Poyarekar <siddhesh@redhat.com>
> Date:   Thu Apr 11 09:06:40 2013 +0530
> 
>     Don't use run-via-rtld-prefix for anything other than tests
>     
>     run-via-rtld-prefix checks whether the program to be run is a static
>     test and skips if it is.  This is fine, except that it assumes that
>     the program to be run is the second $^, which is true only for tests.
>     
>     This change creates an rtld-prefix, which is simply the dynamic linker
>     prefix with the necessary arguments and uses that in the non-test
>     targets.
>     
>     	* Makeconfig (rtld-prefix): Define built linker prefix.
>     	* Rules (run-bench): Use it.
>     	* math/Makefile (run-regen-ulps): Likewise.

Looks good to me, thanks for fixing run-regen-ulps.

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]