From: Andrew Waterman Date: Thu, 14 Sep 2017 18:11:44 +0000 (-0700) Subject: Move link options to end of gcc command line X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0b295faa65c8e6bae880fc17a53d481ef74402f;p=riscv-tests.git Move link options to end of gcc command line --- diff --git a/benchmarks/Makefile b/benchmarks/Makefile index d1c2362..6d87063 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -48,7 +48,7 @@ objs := define compile_template $(1).riscv: $(wildcard $(src_dir)/$(1)/*) $(wildcard $(src_dir)/common/*) - $$(RISCV_GCC) $$(incs) $$(RISCV_GCC_OPTS) $$(RISCV_LINK_OPTS) -o $$@ $(wildcard $(src_dir)/$(1)/*.c) $(wildcard $(src_dir)/common/*.c) $(wildcard $(src_dir)/common/*.S) + $$(RISCV_GCC) $$(incs) $$(RISCV_GCC_OPTS) -o $$@ $(wildcard $(src_dir)/$(1)/*.c) $(wildcard $(src_dir)/common/*.c) $(wildcard $(src_dir)/common/*.S) $$(RISCV_LINK_OPTS) endef $(foreach bmark,$(bmarks),$(eval $(call compile_template,$(bmark))))