[asterisk-dev] [Code Review] Resolve compile error under FreeBSD

Simon Perreault simon.perreault at viagenie.ca
Thu Dec 2 15:52:20 UTC 2010


On 2010-12-02 10:47, Paul Belanger wrote:
> On December 2nd, 2010, 7:13 a.m., *Russell Bryant* wrote:
> 
>     Actually, this should probably check to see if march is already in CFLAGS before adding it ourselves like this.
> 
> You are right, I'm seeing '-march=i386 -march=i686' when I enable NOISY_BUILDS=yes.  However, I'm having trouble locating the logic that adds '-march=i386'.

This is not a problem since the last one takes precedence.

Just ensure that user-specified CFLAGS get precedence by appending them
last. No need to do flag deduplication.

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca



More information about the asterisk-dev mailing list