Re[4]: skawares Failt to build if the CFLAGS are not in the same line

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Mon, 24 Mar 2025 18:38:56 +0000

>The issues seem to be that ./configure is setting IFS=' ' without
>unsetting the value again. This means tabs in CFLAGS also break
>./configure. And the variables aren't escaped for config.mk.

  ... oh. I sent my reply before seeing yours.

  This is interesting. But then why does

CFLAGS="-O2
     -pipe"
./configure

work? I would expect it to fail if IFS was the issue.


>+ IFS=' ' read -r k v ldlibs

  bash construct ;)


>+CFLAGS := $CFLAGS ${CFLAGS_POST//'
>+'/'\
>+'}

  I am unfamiliar with this, can you please explain it?

--
  Laurent
Received on Mon Mar 24 2025 - 19:38:56 CET

This archive was generated by hypermail 2.4.0 : Mon Mar 24 2025 - 19:39:24 CET