diff --git a/Makefile b/Makefile
index b1fae705f1b8a8df9d0766474422eb3fd6a29565..b39bd2f35afe083b4a81c11c433965660f871370 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ include ${FSLCONFDIR}/default.mk
 
 PROJNAME = miscmaths
 SOFILES  = libfsl-miscmaths.so
+LIBS     = -lfsl-utils -lfsl-cprob 
 OBJS     = miscmaths.o optimise.o miscprob.o kernel.o histogram.o \
            base2z.o t2z.o f2z.o minimize.o cspline.o sparse_matrix.o \
            sparsefn.o rungekutta.o nonlin.o bfmatrix.o Simplex.o \
@@ -12,4 +13,4 @@ OBJS     = miscmaths.o optimise.o miscprob.o kernel.o histogram.o \
 all: libfsl-miscmaths.so
 
 libfsl-miscmaths.so: ${OBJS}
-	$(CXX) $(CXXFLAGS) -shared -o $@ $^
+	$(CXX) $(CXXFLAGS) -shared -o $@ $^ ${LDFLAGS}