diff options
-rw-r--r-- | crawl-ref/source/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile index 4428e0e975..e4b96c548f 100644 --- a/crawl-ref/source/Makefile +++ b/crawl-ref/source/Makefile @@ -963,6 +963,10 @@ CFWARN := -wd383,810,869,981,1418 -we14,193,304 CFWARN_L := endif +ifeq (,$(shell echo 'int main(){return 1;}'|$(GXX) -x c++ - -o /dev/null -fuse-ld=gold 2>&1)) + LDFLAGS += -fuse-ld=gold +endif + LDFLAGS += $(CFOPTIMIZE) $(CFOPTIMIZE_L) ifdef REPORT |