On 9/2/24 7:56 PM, Waldek Hebisch wrote:
> On Mon, Sep 02, 2024 at 07:15:12PM +0800, Qian Yun wrote:
>>
>>
>> On 9/2/24 8:13 AM, Waldek Hebisch wrote:
>>> On Sun, Sep 01, 2024 at 10:32:39AM +0800, Qian Yun wrote:
>>>> There is this gentoo bug:
https://bugs.gentoo.org/728048
>>>>
>>>> The CFLAGS/LDFLAGS flags are not propagated properly in Makefiles.
>>>>
>>>> I think the attached patch fixes this.
>>>
>>> It looks OK assuming that we want behaviour that you implemented.
>>> However, it is not 100% clear what CFLAGS/LDFLAGS should do.
>>> For example, in principle for correct configuration we should
>>> use the same flags both during configure and build. So arguably
>>> CFLAGS should be propagated from configure to makefiles.
>>>
>>
>> If you export CFLAGS in environment variables, it is already picked
>> up by configure automatically.
>
> I mean that some folks expect CFLAGS given to configure to propagate
> to Makefiles. For that we would need
>
> AC_SUBST(CFLAGS)