Explorar el Código

julia/examples/mandelbrot: add math library when linking

Nathalie Furmento hace 5 años
padre
commit
955e6606a9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 $@