PDA

View Full Version : I have a script named c in $PATH, make tries to use it, build fails.



paulocarvalho_br_2009
21st May 2009, 21:00
Greetings.

I'm trying to build Qt in my machine.

Qt's main Makefile uses c as C compiler.

But c is the name of a script used in my company's environment to make some other stuff. I cannot change it because it's a company-wide standard and without admin powers I cannot do anything about it locally. I cannot change $PATH entirely because I need some other scripts and binaries that are in the same place as that script named c.

Question: Is there a replacement to it? Can I edit the Makefile replacing c with gcc?

paulocarvalho_br_2009
22nd May 2009, 18:21
After struggling a little bit I found out that setting $CC = gcc makes qmake generate Makefiles using gcc as C compiler.

I think there is something buggy in configure script because despite passing the -platform linux-g++ option whose the corresponding mkspecs specifies gcc as C compiler, the generated Makefiles seem to use the value of $CC variable.