summary refs log tree commit diff stats
path: root/results/classifier/gemma3:12b/other/1926782
blob: 28d7531a02bffc53d4c74f334c91339cd5fa2a70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
configure script --extra-cflags not passed to config-meson.cross

Since qemu 5.2, when building, the configure would not finish, but would return this error instead:

   qemu ../meson.build:852:2: ERROR: C header 'sasl/sasl.h' not found

This is for a cross build, and I invoke qemu with the --extra-cflags and --extra-ldflags containing all the proper paths to the headers, libraries etc. It worked properly with qemu 3.1 to 5.1.

After looking into the configure script, it seems that meson is passed the CFLAGS environment variable instead of QEMU_CFLAGS, and only the latter contains the --extra-cflags argument:

    echo "c_args = [${CFLAGS:+$(meson_quote $CFLAGS)}]" >> $cross

Using the CFLAGS and LDFLAGS environment variable instead of --extra-cflags and --extra-ldflags fixes the issue.