[PATCH 3/7] gmon: Remove ununsed LDFLAGS-tst-profile-static
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Thu Jan 2 19:36:03 GMT 2025
On 31/12/24 17:52, H.J. Lu wrote:
> On Wed, Jan 1, 2025 at 2:27 AM Adhemerval Zanella
> <adhemerval.zanella@linaro.org> wrote:
>>
>> It also fixes the test buidl when using clang.
>> ---
>> gmon/Makefile | 6 ++----
>> 1 file changed, 2 insertions(+), 4 deletions(-)
>>
>> diff --git a/gmon/Makefile b/gmon/Makefile
>> index db19c205d1..f44e7060a9 100644
>> --- a/gmon/Makefile
>> +++ b/gmon/Makefile
>> @@ -43,10 +43,8 @@ tests = \
>> tst-sprofil \
>> # tests
>> ifeq ($(build-profile),yes)
>> -tests += tst-profile-static
>> -tests-static += tst-profile-static
>
> Why are these changes included?
>
They are not required, I will remove them.
>> -
>> -LDFLAGS-tst-profile-static = -profile
>
> Did you enable profile build? If yes, why is -profile unused?
Yes and clang does not support -profile:
clang: error: unknown argument '-profile'; did you mean '-fprofile'?
And afaiu the -profile option on linking only instructs gcc to use -lc_p
instead of -lc; which is not required anyway.
>
>> +tests += tst-profile-static
>> +tests-static += tst-profile-static
>> endif
>>
>> tests += tst-gmon-static
>> --
>> 2.43.0
>>
>
>
More information about the Libc-alpha
mailing list