--- ../lrzip-0.42-orig/Makefile.in	2009-11-30 01:54:07.000000000 +0200
+++ Makefile.in	2009-12-25 14:55:36.000000000 +0200
@@ -14,6 +14,7 @@
 INSTALL_DOC=@docdir@
 INSTALL_DOC_LZMA=@docdir@/lzma
 LIBS=@LIBS@
+LDFLAGS=@LDFLAGS@
 CC=@CC@
 CXX=@CXX@
 CFLAGS=@CFLAGS@ -I. -I$(srcdir) -Wall -W -c
@@ -106,10 +107,10 @@
 	${INSTALLCMD} -m 644 $(DOCFILES_LZMA) $(DESTDIR)${INSTALL_DOC_LZMA}
 
 lrzip: $(OBJS)
-	$(CXX) -o lrzip $(OBJS) $(LIBS)
+	$(CXX) $(LDFLAGS) -o lrzip $(OBJS) $(LIBS)
 
 static: $(OBJS)
-	$(CXX) -static -o lrzip $(OBJS) $(LIBS)
+	$(CXX) $(LDFLAGS) -static -o lrzip $(OBJS) $(LIBS)
 
 clean:
 	-${RM} *~ $(OBJS) lrzip config.cache config.log config.status *.o
