浏览代码

julia/examples/mandelbrot: add math library when linking

Nathalie Furmento 5 年之前
父节点
当前提交
955e6606a9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      julia/examples/mandelbrot/Makefile

+ 1 - 1
julia/examples/mandelbrot/Makefile

@@ -26,7 +26,7 @@ LIBPATH=${PWD}/../StarPU.jl/lib
 all: ${EXTERNLIB}
 
 mandelbrot: mandelbrot.c cpu_mandelbrot.o #gpu_mandelbrot.o
-	$(CC) $(CPU_CFLAGS) $^ -o $@ $(LDFLAGS)
+	$(CC) $(CPU_CFLAGS) $^ -o $@ $(LDFLAGS) -lm
 
 %.o: %.c
 	$(CC) -c -fPIC $(CPU_CFLAGS) $^ -o $@