Ver código fonte

julia/examples/mandelbrot: add math library when linking

Nathalie Furmento 5 anos atrás
pai
commit
955e6606a9
1 arquivos alterados com 1 adições e 1 exclusões
  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 $@