qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 1926782] [NEW] configure script --extra-cflags not passed to config


From: Anisse Astier
Subject: [Bug 1926782] [NEW] configure script --extra-cflags not passed to config-meson.cross
Date: Fri, 30 Apr 2021 15:05:41 -0000

Public bug reported:

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.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1926782

Title:
  configure script --extra-cflags not passed to config-meson.cross

Status in QEMU:
  New

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926782/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]