Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] uclibc: respect top-level TARGET_CFLAGS
@ 2014-11-06 11:47 Alexey Brodkin
  2014-11-06 11:51 ` Baruch Siach
  2014-11-06 12:49 ` Gustavo Zacarias
  0 siblings, 2 replies; 9+ messages in thread
From: Alexey Brodkin @ 2014-11-06 11:47 UTC (permalink / raw)
  To: buildroot

When BR2_TARGET_OPTIMIZATION is used (with some specific compiler flags)
it's expected that ALL target binaries will be built with specified options.

Currently uClibc is built with its own set of options.
This change allows passing additional flags to uclibc build system.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>

Cc: Anton Kolesov <akolesov@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/uclibc/uclibc.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk
index ce416dd..419a4d1 100644
--- a/package/uclibc/uclibc.mk
+++ b/package/uclibc/uclibc.mk
@@ -24,6 +24,8 @@ endif
 
 UCLIBC_INSTALL_STAGING = YES
 
+UCLIBC_EXTRA_CFLAGS = $(TARGET_CFLAGS)
+
 # uclibc is part of the toolchain so disable the toolchain dependency
 UCLIBC_ADD_TOOLCHAIN_DEPENDENCY = NO
 
-- 
1.9.3

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

end of thread, other threads:[~2014-11-11 15:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 11:47 [Buildroot] [PATCH] uclibc: respect top-level TARGET_CFLAGS Alexey Brodkin
2014-11-06 11:51 ` Baruch Siach
2014-11-06 11:59   ` Alexey Brodkin
2014-11-06 12:03     ` Baruch Siach
2014-11-06 17:25       ` Thomas Petazzoni
2014-11-06 12:49 ` Gustavo Zacarias
2014-11-06 13:04   ` Alexey Brodkin
2014-11-06 13:18     ` Gustavo Zacarias
2014-11-11 15:32       ` Alexey Brodkin

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