Am Mo, Mär 24, 2025 am 06:38:56 +0000 schrieb Laurent Bercot:
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.

  It does not. You forgot to export CFLAGS.


+      IFS=' ' read -r k v ldlibs

 bash construct ;)


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

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

${VAR//pattern/replacement} replaces every pattern in VAR by replacement. Here it adds a backslash before every newline.

If I trust https://steinbaugh.com/posts/posix.html#replacement, this is POSIX-compliant.

Hoël

Reply via email to