Skip to content

Commit 1685621

Browse files
committed
Explicitly link math library
1 parent 5b41ec0 commit 1685621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/snippets/benchmark/c/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ all: $(c_targets)
6666
# This target compiles C source files.
6767

6868
$(c_targets): %.out: %.c
69-
$(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $<
69+
$(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm
7070

7171

7272
# Run a benchmark.

0 commit comments

Comments
 (0)