Skip to contentSkip to conversation

Compiling qemu with nas installed

Qemu-devel Hasso Tepper 2 participants 2 messages Mar 11, 2009

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · Anthony Liguori

You should use --extra-cflags and --extra-ldflags. If we're not already making these come before our -I$(srcdir), then we should change that.

Well, I may do whatever, but CPPFLAGS (yes this is correct, not CFLAGS) and LDFLAGS is a common way also used by pkgsrc package management system (therefore out of control of user at all).

Quoted 2 lines

Basically, we need to ensure that any of our headers have include priority over system headers in the search path.

Yes, but to do it regardless what user might specify via CPPFLAGS.

Signature · 1 line
Hasso Tepper
#1 lore raw
Quoted 6 lines · Hasso Tepper
Quoted 3 lines · Anthony Liguori

You should use --extra-cflags and --extra-ldflags. If we're not already making these come before our -I$(srcdir), then we should change that.

Quoted 9 lines

Well, I may do whatever, but CPPFLAGS (yes this is correct, not CFLAGS) and LDFLAGS is a common way also used by pkgsrc package management system (therefore out of control of user at all).

Quoted 3 lines

Basically, we need to ensure that any of our headers have include priority over system headers in the search path.

Yes, but to do it regardless what user might specify via CPPFLAGS.

Right now, setting CPPFLAGS and LDFLAGS is not what's supported by QEMU so if you do that (instead of using --extra-cflags --extra-ldflags), YMMV.

Regards,

Anthony Liguori