Forum: GHDL Fix hard-coding of CC to cc in Makefile

Posted by Wesley J. Landaker (Guest)
on 2008-12-08 22:41
(Received via mailing list)
The following patch is part of the latest Debian package, but probably
should be applied upstream. Basically, the GHDL Makefile was hard-coding 
CC
to cc, instead of using what was determined by the build system. This 
can
break the build completely if cc doesn't match the compiler that 
actually
is being used, especially once e.g. gnatbind and friends get their hands 
on
it.

--- ghdl-0.27+svn110+gcc4.3.2~dfsg.orig/ghdl/vhdl/Makefile.in
+++ ghdl-0.27+svn110+gcc4.3.2~dfsg/ghdl/vhdl/Makefile.in
@@ -80,7 +80,6 @@
 X_ADAFLAGS =
 T_ADAFLAGS =

-CC = cc
 ADAC = $(CC)

 ECHO = echo
Posted by Tristan Gingold (Guest)
on 2008-12-10 05:33
(Received via mailing list)
On Mon, Dec 08, 2008 at 02:39:55PM -0700, Wesley J. Landaker wrote:
> The following patch is part of the latest Debian package, but probably 
> should be applied upstream. Basically, the GHDL Makefile was hard-coding CC 
> to cc, instead of using what was determined by the build system. This can 
> break the build completely if cc doesn't match the compiler that actually 
> is being used, especially once e.g. gnatbind and friends get their hands on 
> it.

Ok, I removed it.

Tristan.
This topic is locked and can not be replied to.