]> git.llucax.com Git - software/dgc/dgcbench.git/blobdiff - Makefile
Use the alternative linker only for DMD
[software/dgc/dgcbench.git] / 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