* [Buildroot] question on gcc compile options
@ 2010-07-16 7:20 Salvat
2010-07-27 18:21 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Salvat @ 2010-07-16 7:20 UTC (permalink / raw)
To: buildroot
Hello,?? ? ? ?I am using buildroot-2009.02 to build a toolchain for mips platform. When I compile my code with the toolchain, I notice that there are many options passed to mipsel-linux-gcc; specifically the -ffunction-sections option. I would like to turn off that option. Can anyone point to me how to control the options sent to gcc.
thanks,arun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100716/bb5f620a/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] question on gcc compile options
2010-07-16 7:20 [Buildroot] question on gcc compile options Salvat
@ 2010-07-27 18:21 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2010-07-27 18:21 UTC (permalink / raw)
To: buildroot
Hello Arun,
On Fri, 16 Jul 2010 00:20:53 -0700 (PDT)
Salvat <slvt1234@yahoo.com> wrote:
> Hello,?? ? ? ?I am using buildroot-2009.02 to build a toolchain for
> mips platform. When I compile my code with the toolchain, I notice
> that there are many options passed to mipsel-linux-gcc; specifically
> the -ffunction-sections option. I would like to turn off that option.
> Can anyone point to me how to control the options sent to gcc.
> thanks,arun
Buildroot 2009.02 is very old, are you able to use a more recent
version, such as 2010.05 ?
Nothing in Buildroot is passing -ffunction-sections. So it is a
particular package that adds this option to the CFLAGS.
In particular, Busybox makes use of this -ffunction-sections. So if you
really don't want this option to be used, you have to look at each
package individually. Do you have any strong reason for not wanting
this option ?
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-27 18:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-16 7:20 [Buildroot] question on gcc compile options Salvat
2010-07-27 18:21 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox