aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-09-14 11:11:44 -0700
committerAndrew Waterman <andrew@sifive.com>2017-09-14 11:11:44 -0700
commite0b295faa65c8e6bae880fc17a53d481ef74402f (patch)
treeddaf17f9185eae0ac21dfe1fc714f8711c6bf8d6 /benchmarks
parent7ab046f286a5356049221946dea36ee755a13346 (diff)
downloadriscv-tests-e0b295faa65c8e6bae880fc17a53d481ef74402f.zip
riscv-tests-e0b295faa65c8e6bae880fc17a53d481ef74402f.tar.gz
riscv-tests-e0b295faa65c8e6bae880fc17a53d481ef74402f.tar.bz2
Move link options to end of gcc command line
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/Makefile2
1 files changed, 1 insertions, 1 deletions
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))))