--- Makefile.orig	2005-12-22 11:13:06.000000000 -0500
+++ Makefile	2014-08-15 12:36:02.000000000 -0400
@@ -19,7 +19,7 @@
 
 # set compiler for the non-MPI version (mpicc will be used for the MPI
 # version regardless of this setting)
-CC = gcc
+CC ?= gcc
 
 # set to yes if you want to use the readline library (make sure you have it
 # installed on your machine)
@@ -67,7 +67,7 @@
 
 LIBS     +=   -lm
 
-LDFLAGS  =   $(CFLAGS)
+LDFLAGS  +=   $(CFLAGS)
 LDLIBS   =   $(LIBS)
 
 OBJECTS   =   bayes.o command.o mbmath.o mcmc.o model.o plot.o sump.o sumt.o
