Преглед изворни кода

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 $@