Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <D87TJEC0LPCZ.36JZHVMWNO37C@posteo.net>
Date: Tue, 04 Mar 2025 22:01:09 +0000
From: "Sertonix" <sertonix@...teo.net>
To: <musl@...ts.openwall.com>
Subject: Re: configure: LIBCC auto detection not using {C,LD}FLAGS

On Tue Mar 4, 2025 at 9:25 PM CET, Rich Felker wrote:
> On Tue, Mar 04, 2025 at 08:15:16PM +0000, Sertonix wrote:
>> Hi,
>> 
>> I noticed that the autodetection of LIBCC doesn't use the
>> CFLAGS/LDFLAGS variables. This means that the result of the auto
>> detection might be incorrect when --sysroot is set through CFLAGS/LDFLAGS
>> and not CC. Would it be may be better to use $LDFLAGS (or similar) in
>> tryldflag?
>
> You can't put things that change the *identity* of the compiler
> toolchain in CFLAGS or LDFLAGS. --sysroot has to go as part of CC,
> defining a different compiler.

Oh, I haven't seen such a rule before but I understand why. Is there any
any doc/spec that this is mentioned in (as a reference)?

One more thing that reqires completely reworked how cross compilation is
done on alpine linux :(

But thanks for the reply anyways!

> Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.