]> git.llucax.com Git - software/dgc/dgcbench.git/commitdiff
Use the alternative linker only for DMD
authorLeandro Lucarella <llucax@gmail.com>
Sat, 19 Sep 2009 20:55:34 +0000 (17:55 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sat, 19 Sep 2009 20:55:34 +0000 (17:55 -0300)
Makefile

index 382fcbb068174e434ff460da98e0fb0f58f34459..a8b02eadbde853af4ca66b7ee12f2a20962f7bc2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,9 +25,11 @@ dummy_mkdir := $(shell mkdir -p $O)
 endif
 
 # don't use Gold with old DMDs
 endif
 
 # don't use Gold with old DMDs
+ifeq ($(subst dmd,,$(DC)),)
 ifneq ($(strip $(shell ld --version | grep gold)),)
 export LD_ := /usr/bin/ld.single
 endif
 ifneq ($(strip $(shell ld --version | grep gold)),)
 export LD_ := /usr/bin/ld.single
 endif
+endif
 
 .PHONY: all
 all: naive
 
 .PHONY: all
 all: naive