qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
@ 2013-11-05 19:09 Peter Maydell
  2013-11-05 19:31 ` Andreas Färber
  0 siblings, 1 reply; 16+ messages in thread
From: Peter Maydell @ 2013-11-05 19:09 UTC (permalink / raw)
  To: Andreas Färber
  Cc: Ken Moffat, QEMU Developers, Anthony Liguori, Patch Tracking

On 5 November 2013 18:45, Andreas Färber <afaerber@suse.de> wrote:
> Am 05.11.2013 19:04, schrieb Peter Maydell:
>> Ping!
>
> A typo in the commit message has been reported

What typo? Alex sent a reply claiming that there was
a missing space in the subject but that appears to be
entirely his email client's problem, since as you can
see from this mail and also in Linaro's patchwork
http://patches.linaro.org/21203/ there is a space there.
(I would link to the qemu patchwork but it seems to
be down right now.)

>, and it has been
> requested to add Cc: qemu-stable@nongnu.org.

I don't think there's any need to respin a patch
just because somebody thinks it might be worth
applying to stable.

-- PMM

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
@ 2013-10-21 20:03 Peter Maydell
  2013-10-22  8:24 ` Peter Maydell
  2013-11-05 18:04 ` Peter Maydell
  0 siblings, 2 replies; 16+ messages in thread
From: Peter Maydell @ 2013-10-21 20:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: Ken Moffat, Anthony Liguori, patches

Our rules.mak adds '-rR' to MAKEFLAGS to indicate that we will be
explicitly specifying everything and not relying on any default
variables or rules. However we were accidentally relying on the
default ARFLAGS ("rv"). This went unnoticed because of a bug in
GNU Make 3.82 and earlier which meant that adding -rR to MAKEFLAGS
only affected submakes, not the currently running instance.
Explicitly set ARFLAGS in config-host.mak, in the same way we
handle CFLAGS and LDFLAGS; this will allow us to work with
Make 4.0.

Thanks to Paul Smith for analyzing this bug for us.

Reported-by: Ken Moffat <zarniwhoop@ntlworld.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
Ken: I think this should work (and it doesn't break building with
old makes), but I don't have a make 4.0 to hand; if you could
test it I'd appreciate it.

 configure | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure b/configure
index 57ee62a..4eb3a07 100755
--- a/configure
+++ b/configure
@@ -308,6 +308,9 @@ query_pkg_config() {
 pkg_config=query_pkg_config
 sdl_config="${SDL_CONFIG-${cross_prefix}sdl-config}"
 
+# If the user hasn't specified ARFLAGS, default to 'rv', just as make does.
+ARFLAGS="${ARFLAGS-rv}"
+
 # default flags for all hosts
 QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS"
 QEMU_CFLAGS="-Wall -Wundef -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS"
@@ -3664,6 +3667,7 @@ echo "C compiler        $cc"
 echo "Host C compiler   $host_cc"
 echo "C++ compiler      $cxx"
 echo "Objective-C compiler $objcc"
+echo "ARFLAGS           $ARFLAGS"
 echo "CFLAGS            $CFLAGS"
 echo "QEMU_CFLAGS       $QEMU_CFLAGS"
 echo "LDFLAGS           $LDFLAGS"
@@ -4239,6 +4243,7 @@ echo "HOST_CC=$host_cc" >> $config_host_mak
 echo "CXX=$cxx" >> $config_host_mak
 echo "OBJCC=$objcc" >> $config_host_mak
 echo "AR=$ar" >> $config_host_mak
+echo "ARFLAGS=$ARFLAGS" >> $config_host_mak
 echo "AS=$as" >> $config_host_mak
 echo "CPP=$cpp" >> $config_host_mak
 echo "OBJCOPY=$objcopy" >> $config_host_mak
-- 
1.7.11.4

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

end of thread, other threads:[~2013-12-04  1:44 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-05 19:09 [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0 Peter Maydell
2013-11-05 19:31 ` Andreas Färber
2013-11-05 19:36   ` Peter Maydell
2013-12-04  0:33     ` Michael Roth
2013-12-04  0:38       ` Peter Maydell
2013-12-04  1:43         ` Michael Roth
  -- strict thread matches above, loose matches on Subject: below --
2013-10-21 20:03 Peter Maydell
2013-10-22  8:24 ` Peter Maydell
2013-10-22 17:35   ` Ken Moffat
2013-10-22 18:09     ` Ken Moffat
2013-10-22 18:52       ` Ken Moffat
2013-10-22 18:10     ` Peter Maydell
2013-10-22 18:19       ` Ken Moffat
2013-10-23  7:54   ` Paolo Bonzini
2013-11-05 18:04 ` Peter Maydell
2013-11-05 18:45   ` Andreas Färber

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).