aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-09-19 14:34:42 -0700
committerAndrew Waterman <andrew@sifive.com>2017-09-19 14:34:53 -0700
commit51b823c7ed8391756a83cab854cd4c646dd13acf (patch)
treea86d05bc9ed1ddc47187dcd2739722dcdddf8b0f
parenta69be1a4320136e2d4284974c39fa0fb9dd76db8 (diff)
downloadriscv-tests-51b823c7ed8391756a83cab854cd4c646dd13acf.zip
riscv-tests-51b823c7ed8391756a83cab854cd4c646dd13acf.tar.gz
riscv-tests-51b823c7ed8391756a83cab854cd4c646dd13acf.tar.bz2
Link against libm for fma()
-rw-r--r--benchmarks/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile
index 6d87063..fb0d297 100644
--- a/benchmarks/Makefile
+++ b/benchmarks/Makefile
@@ -39,7 +39,7 @@ RISCV_PREFIX ?= riscv$(XLEN)-unknown-elf-
RISCV_GCC ?= $(RISCV_PREFIX)gcc
RISCV_GCC_OPTS ?= -DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf
RISCV_LINK ?= $(RISCV_GCC) -T $(src_dir)/common/test.ld $(incs)
-RISCV_LINK_OPTS ?= -static -nostdlib -nostartfiles -lgcc -T $(src_dir)/common/test.ld
+RISCV_LINK_OPTS ?= -static -nostdlib -nostartfiles -lm -lgcc -T $(src_dir)/common/test.ld
RISCV_OBJDUMP ?= $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.data
RISCV_SIM ?= spike --isa=rv$(XLEN)gc