From: Max Filippov <jcmvbkbc@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] gcc/gcc-final: pass TARGET_ABI flags to configure with --enable-cxx-flags
Date: Tue, 26 May 2015 10:32:36 +0300 [thread overview]
Message-ID: <1432625556-14611-1-git-send-email-jcmvbkbc@gmail.com> (raw)
libstdc++ is in all regards a normal library, it needs to be built with
TARGET_ABI flags, otherwise linking it with other C++ code may fail.
Pass TARGET_ABI flags to gcc-final configure script in the
--enable-cxx-flags parameter.
Fixes:
http://autobuild.buildroot.net/results/81a3bca5cbcf789c7ce1aa221a6a4154dd7c3917/
http://autobuild.buildroot.net/results/4943b214c29951ecc7af0a1f360b6454485c0b9b/
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
package/gcc/gcc-final/gcc-final.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk
index d873aa6..8d7009b 100644
--- a/package/gcc/gcc-final/gcc-final.mk
+++ b/package/gcc/gcc-final/gcc-final.mk
@@ -185,4 +185,8 @@ endef
HOST_GCC_FINAL_POST_INSTALL_HOOKS += HOST_GCC_FINAL_INSTALL_USR_LIBS
endif
+ifeq ($(BR2_xtensa),y)
+HOST_GCC_FINAL_CONF_OPTS += --enable-cxx-flags="$(TARGET_ABI)"
+endif
+
$(eval $(host-autotools-package))
--
1.8.1.4
next reply other threads:[~2015-05-26 7:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 7:32 Max Filippov [this message]
2015-05-27 21:45 ` [Buildroot] [PATCH] gcc/gcc-final: pass TARGET_ABI flags to configure with --enable-cxx-flags Arnout Vandecappelle
2015-05-28 3:10 ` Max Filippov
2015-05-28 19:24 ` Arnout Vandecappelle
2015-05-31 20:52 ` Peter Korsgaard
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=1432625556-14611-1-git-send-email-jcmvbkbc@gmail.com \
--to=jcmvbkbc@gmail.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