This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ct-ng seems to disable all optimization by default


Hi,

I've been looking through the build.log and found that
most parts of the toolchain are build without -O2 or similar.
This seems to be caused by ct-ng build scripts passing CFLAGS
unconditionally to ./configure, which causes it to _replace_
any default CFLAGS with the given ones -- in my
case (with CT_USE_PIPES=y) " -pipe".

I guess the easy solution is CT_EXTRA_FLAGS_FOR_HOST="-O2"
and CT_TARGET_CFLAGS="-Os" (or similar).

To me this behaviour is unexpected because CT_EXTRA_FLAGS_FOR_HOST
help talks about "additional" CFLAGS.


Johannes

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]