diff -pruN 1.2-3/debian/changelog 1.2-3ubuntu1/debian/changelog
--- 1.2-3/debian/changelog	2011-09-14 00:54:29.000000000 +0000
+++ 1.2-3ubuntu1/debian/changelog	2011-09-14 00:54:29.000000000 +0000
@@ -1,3 +1,9 @@
+root-tail (1.2-3ubuntu1) oneiric; urgency=low
+
+  * Fix FTBFS with ld --as-needed. LP: #770864.
+
+ -- Matthias Klose <doko@ubuntu.com>  Tue, 13 Sep 2011 23:09:58 +0200
+
 root-tail (1.2-3) unstable; urgency=low
 
   * Bump Standards-Version to 3.8.0 (no changes)
diff -pruN 1.2-3/Makefile 1.2-3ubuntu1/Makefile
--- 1.2-3/Makefile	2011-09-14 00:54:29.000000000 +0000
+++ 1.2-3ubuntu1/Makefile	2011-09-14 00:54:29.000000000 +0000
@@ -13,7 +13,7 @@ SOURCES = root-tail.c
 all: root-tail man
 
 root-tail: $(SOURCES) config.h
-	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SOURCES)
+	$(CC) $(CFLAGS) $(SOURCES) $(LDFLAGS) -o $@
 
 man: root-tail.1.gz
 

