--- Makefile.in.orig	2006-08-11 05:05:55.000000000 +1000
+++ Makefile.in	2015-03-02 14:53:29.000000000 +1100
@@ -75,14 +75,14 @@
 all: $(LIBS) $(MANS) $(TSTS)
 
 libmm.la: $(OBJS)
-	$(LIBTOOL) --quiet --mode=link $(CC) -o $@ $(OBJS) \
+	$(LIBTOOL) --quiet --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJS) \
 	    -rpath $(libdir) -version-info `$(SHTOOL) version -l c -d libtool mm_vers.c`
 
 mm_alloc.c mm_core.c mm_global.c: mm.h mm_vers.c
 mm.h: config.h
 
 mm_test: mm_test.lo libmm.la
-	$(LIBTOOL) --quiet --mode=link $(CC) -o $@ mm_test.lo libmm.la
+	$(LIBTOOL) --quiet --mode=link $(CC) $(LDFLAGS) -o $@ mm_test.lo libmm.la
 
 mm.3: mm.pod
 	V1=`$(SHTOOL) version -l c -d short mm_vers.c`; \
