Index: ghc-7.0.4/aclocal.m4
===================================================================
--- ghc-7.0.4.orig/aclocal.m4	2011-10-22 23:04:50.527329974 +0100
+++ ghc-7.0.4/aclocal.m4	2011-10-22 23:09:22.520462894 +0100
@@ -109,6 +109,10 @@
         $4="$$4 -arch x86_64"
         $5="$$5 -m64"
         ;;
+    *-linux*)
+        $3="$$3 -Wl,--hash-style=both,--no-copy-dt-needed-entries,--as-needed"
+        $4="$$4 --hash-style=both --no-copy-dt-needed-entries --as-needed"
+        ;;
     esac
 
     # If gcc knows about the stack protector, turn it off.
