View Single Post
Old 09-25-2012, 11:50 AM   #38
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@knc1: The issue with putting it in LDFLAGS is that if one were to pass those to ld directly, not through a compiler driver like gcc, ld/gold would (probably, haven't checked) choke on -flto. And even through a driver, since it's not 'escaped' by -Wl, ld would probably not be a happy camper. And if you put it escaped in LDFLAGS, go back to square 1: ld chokes on it ^^.

Long story short: It's a GCC flag/feature, it goes in CFLAGS. Don't try to use it though any other means . The buildsystem just has to be 'smart' enough to link through the gcc linker driver, and to honor the *FLAGS properly.

Last edited by NiLuJe; 09-25-2012 at 11:57 AM.
NiLuJe is offline   Reply With Quote