D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4896 - GCC not accessed as a variable in linux.mak
Summary: GCC not accessed as a variable in linux.mak
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All Linux
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-19 07:08 UTC by BCS
Modified: 2016-10-14 12:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description BCS 2010-09-19 07:08:55 UTC
Index: src/linux.mak
===================================================================
--- src/linux.mak	(revision 680)
+++ src/linux.mak	(working copy)
@@ -5,7 +5,8 @@

 MODEL=-m32

 CC=g++ $(MODEL)
+GCC=gcc $(MODEL)

 #OPT=-g -g3
 #OPT=-O2
@@ -93,7 +94,7 @@
 all: dmd

 dmd: $(DMD_OBJS)
-	gcc $(MODEL) -lstdc++ -lpthread $(COV) $(DMD_OBJS) -o dmd
+	$(GCC) -lstdc++ -lpthread $(COV) $(DMD_OBJS) -o dmd

 clean:
 	rm -f $(DMD_OBJS) dmd optab.o id.o impcnvgen idgen id.c id.h \
@@ -463,7 +464,7 @@
 	$(CC) -c $(GFLAGS) -I$(ROOT) $<

 strtold.o: $C/strtold.c
-	gcc $(MODEL) -c $C/strtold.c
+	$(GCC) -c $C/strtold.c

 struct.o: struct.c
 	$(CC) -c $(CFLAGS) $<
Comment 1 Andrei Alexandrescu 2016-10-14 12:48:02 UTC
Fixed a while ago.