From: SF/projects/mingw n. l. <min...@li...> - 2011-05-25 11:35:34
|
Bugs item #3307453, was opened at 2011-05-25 13:35 Message generated for change (Tracker Item Submitted) made by fabian_deb You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3307453&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Fabian Greffrath (fabian_deb) Assigned to: Nobody/Anonymous (nobody) Summary: make sets CC=cc, not gcc Initial Comment: Hi, I wonder why both make implementations (i.e. mingw32-make and MSYS make) have "CC=cc" preset, although the C compiler in MinGW is called "gcc". A binary called "cc" simply does not exist in MinGW and "make" is thus defective by design. Even a most simple Makefile like "all: test", where test.c is e.g. a hello world program, fails with $cat Makefile all: test $make cc test.c -o test make: cc: Command not found make: *** [test] Error 127 The CC variable is not even left undefined, it is explicitely set to "cc", so even macros like "CC?=gcc" do not work. This does not really add to portability. I understand if make implementations should be kept as little GNU-specific as possible, but then I wonder why "CXX=g++" is preset at the same time. Cheers, Fabian ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3307453&group_id=2435 |