--- libelf-0.8.13.orig/lib/Makefile.in	2009-11-01 14:04:19.000000000 +0100
+++ libelf-0.8.13/lib/Makefile.in	2011-01-15 21:55:08.000000000 +0100
@@ -158,7 +158,7 @@ libelf.a: $(OBJS) $(LIBOBJS)
 
 $(SHLIB): libelf.a
 	@$(RM) $(SHLIB)
-	$(LINK_SHLIB) -o $(SHLIB) $(OBJS:.o=.os) $(LIBOBJS:.o=.os) $(DEPSHLIBS)
+	$(LINK_SHLIB) $(LDFLAGS) -o $(SHLIB) $(OBJS:.o=.os) $(LIBOBJS:.o=.os) $(DEPSHLIBS)
 	if test "$(SONAME)" = "$(SHLIB)"; then true; else \
 	  $(RM) $(SONAME) && $(LN_S) $(SHLIB) $(SONAME); \
 	fi
