Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] gcc/gcc-final: pass TARGET_CFLAGS flags to configure with --enable-cxx-flags
@ 2015-06-01 14:37 Max Filippov
  2016-01-09 22:08 ` Yann E. MORIN
  0 siblings, 1 reply; 6+ messages in thread
From: Max Filippov @ 2015-06-01 14:37 UTC (permalink / raw)
  To: buildroot

Currently only TARGET_ABI flags are passed to the final compiler
configure script and only when building for Xtensa. Since libstdc++ is a
normal library it should be built with full TARGET_CFLAGS on all
targets.

Pass TARGET_CFLAGS flags to gcc-final configure script for all targets
in the --enable-cxx-flags parameter.

Suggested-by: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
 package/gcc/gcc-final/gcc-final.mk | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk
index 8d7009b..59c8708 100644
--- a/package/gcc/gcc-final/gcc-final.mk
+++ b/package/gcc/gcc-final/gcc-final.mk
@@ -185,8 +185,6 @@ 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
+HOST_GCC_FINAL_CONF_OPTS += --enable-cxx-flags="$(TARGET_CFLAGS)"
 
 $(eval $(host-autotools-package))
-- 
1.8.1.4

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

end of thread, other threads:[~2016-03-10  9:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-01 14:37 [Buildroot] [PATCH] gcc/gcc-final: pass TARGET_CFLAGS flags to configure with --enable-cxx-flags Max Filippov
2016-01-09 22:08 ` Yann E. MORIN
2016-03-08 23:22   ` Arnout Vandecappelle
2016-03-10  9:37     ` Max Filippov
2016-03-10  9:46       ` Arnout Vandecappelle
2016-03-10  9:57         ` Max Filippov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox