[ECOS] -finit-priority gcc option in global build options

Mike Sweeney msweeney77@gmail.com
Tue Aug 7 21:22:00 GMT 2007

On 8/7/07, Andrew Lunn <andrew@lunn.ch> wrote:
> On Tue, Aug 07, 2007 at 03:55:19PM -0400, Mike Sweeney wrote:
> > So the default global build options include a -finit-priority option.
> > I upgraded from gcc 3.2.1 so this option no longer exists. I
> > understand this option is no longer recognized by gcc, but I went back
> > to the manuals for the older versions of gcc on the GNU website, and
> > they don't have any mention of this option. What exactly did this
> > option do? It seems to not be documented.
> My packages/pkgconf/rules.mak
> contains:
> # GCC since 2.95 does -finit-priority by default so remove it from old HALs
> CFLAGS := $(subst -finit-priority,,$(CFLAGS))
> So the flag should not be making it to the gcc invocation.

That is true, but only in the package makefiles. The ecos.mak that
gets generated doesn't include rules.mak. I include ecos.mak into my
application's makefile so when building my application code I ran into
that issue.

Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list