gcc - Using -flto with autotools -


given c++ program uses gnu autotools, what's easiest way compile -flto (link time optimization)? understanding is customary on unix such optimization flags specified user or packager, not programmer.

according this post, -flto flag needs passed compilation flag , linker flag, so:

./configure cxxflags="-flto" ldflags="-flto" ... 

or possibly:

./configure cxxflags="-flto" ldflags="-wc,-flto" ... 

might work.


Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -