Link against libm for fma()
authorAndrew Waterman <andrew@sifive.com>
Tue, 19 Sep 2017 21:34:42 +0000 (14:34 -0700)
committerAndrew Waterman <andrew@sifive.com>
Tue, 19 Sep 2017 21:34:53 +0000 (14:34 -0700)
benchmarks/Makefile

index 6d8706363652e254721a39d979921b89f36f1c4f..fb0d2977dec06ad2128afd7fe516838c89be71eb 100644 (file)
@@ -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