]> git.llucax.com Git - software/dgc/dgcbench.git/blobdiff - Makefile
Use the alternative linker only for DMD
[software/dgc/dgcbench.git] / Makefile
index 574eeb03760a3bccfaf153993c614bced583d0b1..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
-ifneq ($(shell ld --version | grep gold),)
+ifeq ($(subst dmd,,$(DC)),)
+ifneq ($(strip $(shell ld --version | grep gold)),)
 export LD_ := /usr/bin/ld.single
 endif
+endif
 
 .PHONY: all
 all: naive