Browse Source

julia/examples/mandelbrot: add math library when linking

Nathalie Furmento 5 years ago
parent
commit
955e6606a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      julia/examples/mandelbrot/Makefile

+ 1 - 1
julia/examples/mandelbrot/Makefile

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