Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Override CFLAGS for autotools and cmake packages
@ 2012-11-16 13:47 FLX
  2012-11-19  7:52 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: FLX @ 2012-11-16 13:47 UTC (permalink / raw)
  To: buildroot

Hi All,

What is the best way to override CFLAGS for a autotools and cmake packages?
Is it possible to ad something like LIBFOO_CMAKE=-O2... ?

--
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20121116/27b8af84/attachment-0001.html>

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

* [Buildroot] Override CFLAGS for autotools and cmake packages
  2012-11-16 13:47 [Buildroot] Override CFLAGS for autotools and cmake packages FLX
@ 2012-11-19  7:52 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2012-11-19  7:52 UTC (permalink / raw)
  To: buildroot

On 16/11/12 14:47, FLX Solutions, LLC wrote:
> Hi All,
>
> What is the best way to override CFLAGS for a autotools and cmake packages?
> Is it possible to ad something like LIBFOO_CMAKE=-O2... ?

  You can add options to the call to configure or cmake by setting
LIBFOO_CONF_OPT.  I don't know how you set flags for cmake, but for configure
you'd do it with:
LIBFOO_CONF_OPT = CFLAGS="$(TARGET_CFLAGS) -O2"

  Note, however, that optimization flags like -O2 are typically set in the
"gcc optimization level" choice in the "Build options" menu.

  Regards,
  Arnout
-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

end of thread, other threads:[~2012-11-19  7:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-16 13:47 [Buildroot] Override CFLAGS for autotools and cmake packages FLX
2012-11-19  7:52 ` Arnout Vandecappelle

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