Re: Recommend place to set CXXFLAGS="-O2 -mcpu=xscale -mtune=xscale"
On Fri, 1 Feb 2008 06:58:41 -0800 (PST)
slugmanbashi <firstname.lastname@example.org> wrote:
> Id appreciate it if someone could advise how and where CXXFLAGS
> should be set and how one checks if the flag was applied post compile
I've compiled libtorrent/rtorrent many times on the NSLU.
All you need to do (before starting .configure) is:
export CXXFLAGS="-mcpu=xscale -mtune=xscale"
The -O2 should be the default, so it makes no difference to add that.
You should see the following during .configure after exporting the
checking for user-defined CXXFLAGS... user-defined "-mcpu=xscale