CC environment variable not honored

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

While trying to compile PJSIP with a compiler different than the default 
(/usr/bin/gcc-4.0 instead of /usr/bin/gcc) I noticed that setting the CC 
environment variable has no real effect on the compilation.

After diving a while, I think the problem is in build/cc-gcc-mak file. 
This exports the CC variable, thus overriding whatever the user has set.

I managed to fix this by creating a user.mak file with the following 
content:

export CC=gcc-4.0 -c
export LD=gcc-4.0

Is this a bug, or a feature? :)

Thanks for the great work guys.


Kind regards,

-- 
Sa?l Ibarra Corretg?
AG Projects



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux