qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] pixman: pass extra cflags and ldflags
@ 2013-01-04  9:18 Gerd Hoffmann
  2013-01-04 19:34 ` Scott Wood
  0 siblings, 1 reply; 5+ messages in thread
From: Gerd Hoffmann @ 2013-01-04  9:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: Scott Wood, Gerd Hoffmann

Store --extra-cflags and --extra-ldflags in config-host.mak,
then pass them on to the pixman configure script.

Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 Makefile  |    2 +-
 configure |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index a7ac04b..4cc1838 100644
--- a/Makefile
+++ b/Makefile
@@ -126,7 +126,7 @@ subdir-pixman: pixman/Makefile
 	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pixman V="$(V)" all,)
 
 pixman/Makefile: $(SRC_PATH)/pixman/configure
-	(cd pixman; CFLAGS="$(CFLAGS) -fPIC" $(SRC_PATH)/pixman/configure $(AUTOCONF_HOST) --disable-gtk --disable-shared --enable-static)
+	(cd pixman; CFLAGS="$(CFLAGS) -fPIC $(extra_cflags) $(extra_ldflags)" $(SRC_PATH)/pixman/configure $(AUTOCONF_HOST) --disable-gtk --disable-shared --enable-static)
 
 $(SRC_PATH)/pixman/configure:
 	(cd $(SRC_PATH)/pixman; autoreconf -v --install)
diff --git a/configure b/configure
index 9538041..4095c38 100755
--- a/configure
+++ b/configure
@@ -238,8 +238,10 @@ for opt do
   --cpu=*) cpu="$optarg"
   ;;
   --extra-cflags=*) QEMU_CFLAGS="$optarg $QEMU_CFLAGS"
+                    EXTRA_CFLAGS="$optarg"
   ;;
   --extra-ldflags=*) LDFLAGS="$optarg $LDFLAGS"
+                     EXTRA_LDFLAGS="$optarg"
   ;;
   --enable-debug-info) debug_info="yes"
   ;;
@@ -3334,6 +3336,8 @@ echo "qemu_datadir=$qemu_datadir" >> $config_host_mak
 echo "qemu_docdir=$qemu_docdir" >> $config_host_mak
 echo "qemu_localstatedir=$local_statedir" >> $config_host_mak
 echo "qemu_helperdir=$libexecdir" >> $config_host_mak
+echo "extra_cflags=$EXTRA_CFLAGS" >> $config_host_mak
+echo "extra_ldflags=$EXTRA_LDFLAGS" >> $config_host_mak
 
 echo "ARCH=$ARCH" >> $config_host_mak
 if test "$debug_tcg" = "yes" ; then
-- 
1.7.1

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

* Re: [Qemu-devel] [PATCH] pixman: pass extra cflags and ldflags
  2013-01-04  9:18 [Qemu-devel] [PATCH] pixman: pass extra cflags and ldflags Gerd Hoffmann
@ 2013-01-04 19:34 ` Scott Wood
  0 siblings, 0 replies; 5+ messages in thread
From: Scott Wood @ 2013-01-04 19:34 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

On 01/04/2013 03:18:08 AM, Gerd Hoffmann wrote:
> Store --extra-cflags and --extra-ldflags in config-host.mak,
> then pass them on to the pixman configure script.
> 
> Cc: Scott Wood <scottwood@freescale.com>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  Makefile  |    2 +-
>  configure |    4 ++++
>  2 files changed, 5 insertions(+), 1 deletions(-)

This fixes pixman cross-compile for me; thanks!

BTW, one thing I noticed when testing this was that "make clean" at the  
qemu level won't cause pixman to be fully cleaned (the final library  
file remains, and won't be rebuilt).

-Scott

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

* [Qemu-devel] [PULL] pixman patch queue
@ 2013-01-14 11:52 Gerd Hoffmann
  2013-01-14 11:52 ` [Qemu-devel] [PATCH] pixman: pass extra cflags and ldflags Gerd Hoffmann
  2013-01-14 18:03 ` [Qemu-devel] [PULL] pixman patch queue Anthony Liguori
  0 siblings, 2 replies; 5+ messages in thread
From: Gerd Hoffmann @ 2013-01-14 11:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

  Hi,

Coming with a lonely buildfix for the internal pixman copy.

please pull,
  Gerd

The following changes since commit 63fb2590839162afdf14d7c0ee02d460766c0956:

  Merge branch 'target-arm.next' of git://git.linaro.org/people/pmaydell/qemu-arm (2013-01-12 12:47:07 +0000)

are available in the git repository at:


  git://git.kraxel.org/qemu pixman.v6

for you to fetch changes up to f9943cd58f8a053172aa701d79da512ccd10d758:

  pixman: pass extra cflags and ldflags (2013-01-14 12:50:45 +0100)

----------------------------------------------------------------
Gerd Hoffmann (1):
      pixman: pass extra cflags and ldflags

 Makefile  |    2 +-
 configure |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

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

* [Qemu-devel] [PATCH] pixman: pass extra cflags and ldflags
  2013-01-14 11:52 [Qemu-devel] [PULL] pixman patch queue Gerd Hoffmann
@ 2013-01-14 11:52 ` Gerd Hoffmann
  2013-01-14 18:03 ` [Qemu-devel] [PULL] pixman patch queue Anthony Liguori
  1 sibling, 0 replies; 5+ messages in thread
From: Gerd Hoffmann @ 2013-01-14 11:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: Scott Wood, Gerd Hoffmann

Store --extra-cflags and --extra-ldflags in config-host.mak,
then pass them on to the pixman configure script.

Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 Makefile  |    2 +-
 configure |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 0200bf3..2286174 100644
--- a/Makefile
+++ b/Makefile
@@ -126,7 +126,7 @@ subdir-pixman: pixman/Makefile
 	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pixman V="$(V)" all,)
 
 pixman/Makefile: $(SRC_PATH)/pixman/configure
-	(cd pixman; CFLAGS="$(CFLAGS) -fPIC" $(SRC_PATH)/pixman/configure $(AUTOCONF_HOST) --disable-gtk --disable-shared --enable-static)
+	(cd pixman; CFLAGS="$(CFLAGS) -fPIC $(extra_cflags) $(extra_ldflags)" $(SRC_PATH)/pixman/configure $(AUTOCONF_HOST) --disable-gtk --disable-shared --enable-static)
 
 $(SRC_PATH)/pixman/configure:
 	(cd $(SRC_PATH)/pixman; autoreconf -v --install)
diff --git a/configure b/configure
index ea42fe2..a750bb5 100755
--- a/configure
+++ b/configure
@@ -240,8 +240,10 @@ for opt do
   --cpu=*) cpu="$optarg"
   ;;
   --extra-cflags=*) QEMU_CFLAGS="$optarg $QEMU_CFLAGS"
+                    EXTRA_CFLAGS="$optarg"
   ;;
   --extra-ldflags=*) LDFLAGS="$optarg $LDFLAGS"
+                     EXTRA_LDFLAGS="$optarg"
   ;;
   --enable-debug-info) debug_info="yes"
   ;;
@@ -3349,6 +3351,8 @@ echo "qemu_datadir=$qemu_datadir" >> $config_host_mak
 echo "qemu_docdir=$qemu_docdir" >> $config_host_mak
 echo "qemu_localstatedir=$local_statedir" >> $config_host_mak
 echo "qemu_helperdir=$libexecdir" >> $config_host_mak
+echo "extra_cflags=$EXTRA_CFLAGS" >> $config_host_mak
+echo "extra_ldflags=$EXTRA_LDFLAGS" >> $config_host_mak
 
 echo "ARCH=$ARCH" >> $config_host_mak
 if test "$debug_tcg" = "yes" ; then
-- 
1.7.9.7

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

* Re: [Qemu-devel] [PULL] pixman patch queue
  2013-01-14 11:52 [Qemu-devel] [PULL] pixman patch queue Gerd Hoffmann
  2013-01-14 11:52 ` [Qemu-devel] [PATCH] pixman: pass extra cflags and ldflags Gerd Hoffmann
@ 2013-01-14 18:03 ` Anthony Liguori
  1 sibling, 0 replies; 5+ messages in thread
From: Anthony Liguori @ 2013-01-14 18:03 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel

Pulled, thanks.

Regards,

Anthony Liguori

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

end of thread, other threads:[~2013-01-14 18:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-14 11:52 [Qemu-devel] [PULL] pixman patch queue Gerd Hoffmann
2013-01-14 11:52 ` [Qemu-devel] [PATCH] pixman: pass extra cflags and ldflags Gerd Hoffmann
2013-01-14 18:03 ` [Qemu-devel] [PULL] pixman patch queue Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2013-01-04  9:18 [Qemu-devel] [PATCH] pixman: pass extra cflags and ldflags Gerd Hoffmann
2013-01-04 19:34 ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).