No need to use mpicc to compile the plot_image examples. Use gcc instead.
authorW. Trevor King <wking@drexel.edu>
Sat, 21 Jan 2012 17:41:22 +0000 (12:41 -0500)
committerW. Trevor King <wking@drexel.edu>
Sat, 21 Jan 2012 17:41:38 +0000 (12:41 -0500)
This requires linking libm explicitly to define `sin` and `cos`.

src/plot_image/Makefile

index d0e5377d1cfb964fe1a4080731cb8ef25020bee7..bd5cea9eaea8d33fd852189fc841f003d96cc7eb 100644 (file)
@@ -1,7 +1,7 @@
-CC       = /usr/bin/mpicc
+CC       = /usr/bin/gcc
 CFLAGS   =
 LD       = $(CC)
-LDFLAGS  =
+LDFLAGS  = -lm
 RM       = /bin/rm
 EXAMPLES = rectangle sharp sinusoid
 EXECS = $(EXAMPLES:%=gen_data_%)