Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] qt: build using old C++ standart
Date: Fri, 19 Aug 2016 20:01:21 +0000	[thread overview]
Message-ID: <1471636769.5256.21.camel@synopsys.com> (raw)
In-Reply-To: <0C7FB5F2-6BD7-4019-9A66-A0BB67984A18@gmail.com>

Hi Khem,

On Fri, 2016-08-19 at 10:21 -0700, Khem Raj wrote:
> > 
> > On Aug 19, 2016, at 9:18 AM, Vlad Zakharov <Vladislav.Zakharov@synopsys.com> wrote:
> > 
> > 'std::auto_ptr' is deprecated with gcc-6 but is used in qt4 code.
> > So we have to build using old C++ standart to prevent build failures.
> > 
> > qt4 is not being developed no more, so unfortunately we can't update
> > obsolete C++ code and have to add this workaround.
> > 
> > Fixes:
> > http://autobuild.buildroot.net/results/541/54172d55f39b2fcfa5b7fb4d4ee01566678babbc//
> > and also Qt build for ARC.
> > 
> > Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com>
> > ---
> > package/qt/qt.mk | 5 +++++
> > 1 file changed, 5 insertions(+)
> > 
> > diff --git a/package/qt/qt.mk b/package/qt/qt.mk
> > index 09b8dc2..41cdd1a 100644
> > --- a/package/qt/qt.mk
> > +++ b/package/qt/qt.mk
> > @@ -41,6 +41,11 @@ QT_CFLAGS = $(TARGET_CFLAGS)
> > QT_CXXFLAGS = $(TARGET_CXXFLAGS)
> > QT_LDFLAGS = $(TARGET_LDFLAGS)
> > 
> > +# Qt WebKit build fails when gcc-6 is used for build.
> > +# 'std::auto_ptr' is deprecated with gcc-6
> > +# So, we have to use old c++ standart to prevent build failure
> > +QT_CXXFLAGS += -std=gnu++98
> 
> you might add -Wno-deprecated as well.

Why would we need it if "-std=gnu++98" already fixes the build problem?

-Alexey

  reply	other threads:[~2016-08-19 20:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-19 16:18 [Buildroot] [PATCH] qt: build using old C++ standart Vlad Zakharov
2016-08-19 17:21 ` Khem Raj
2016-08-19 20:01   ` Alexey Brodkin [this message]
2016-08-19 20:43     ` Khem Raj
2016-08-19 21:08 ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1471636769.5256.21.camel@synopsys.com \
    --to=alexey.brodkin@synopsys.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox