All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] configure: Filter out system includes for pixman
@ 2014-10-02  7:14 Jan Kiszka
  2014-10-02  7:43 ` Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2014-10-02  7:14 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

Other packages may provide includes for pixman as well if the host has a
devel package installed. Remove them from QEMU_CFLAGS before adding our
version to unsure that the right headers are used.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 configure | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 9ac2600..98c7cc8 100755
--- a/configure
+++ b/configure
@@ -4211,8 +4211,9 @@ EOF
   fi
 fi
 
-# add pixman flags after all config tests are done
-QEMU_CFLAGS="$QEMU_CFLAGS $pixman_cflags $fdt_cflags"
+# add pixman flags after all config tests are done,
+# filtering out conflicting includes paths
+QEMU_CFLAGS=`echo "$QEMU_CFLAGS" | sed "s/-I[^ ]*pixman-1//"`" $pixman_cflags $fdt_cflags"
 libs_softmmu="$libs_softmmu $pixman_libs"
 
 echo "Install prefix    $prefix"
-- 
1.8.1.1.298.ge7eed54

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] configure: Filter out system includes for pixman
  2014-10-02  7:14 [Qemu-devel] [PATCH] configure: Filter out system includes for pixman Jan Kiszka
@ 2014-10-02  7:43 ` Gerd Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2014-10-02  7:43 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: qemu-devel

On Do, 2014-10-02 at 09:14 +0200, Jan Kiszka wrote:
> Other packages may provide includes for pixman as well if the host has a
> devel package installed. Remove them from QEMU_CFLAGS before adding our
> version to unsure that the right headers are used.

Hmm, how does that happen?  Shouldn't qemu use the system pixman if
present?  Well, maybe not in case it is too old ...

I think we should just reverse the ordering, so our pixman submodule
comes first in the include path list.  And it is probably a good idea to
do the same for fdt.

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-02  7:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-02  7:14 [Qemu-devel] [PATCH] configure: Filter out system includes for pixman Jan Kiszka
2014-10-02  7:43 ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.