diff -Nur gcc-4.7.2.orig/gcc/config/linux.h gcc-4.7.2/gcc/config/linux.h
--- gcc-4.7.2.orig/gcc/config/linux.h	2012-08-14 15:59:04.000000000 +0200
+++ gcc-4.7.2/gcc/config/linux.h	2012-10-05 12:49:06.000000000 +0200
@@ -76,8 +76,8 @@
    supporting both 32-bit and 64-bit compilation.  */
 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
 #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKERX32 "/lib/ldx32-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER64 "/lib64/ld64-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKERX32 "/libx32/ldx32-uClibc.so.0"
 #define BIONIC_DYNAMIC_LINKER "/system/bin/linker"
 #define BIONIC_DYNAMIC_LINKER32 "/system/bin/linker"
 #define BIONIC_DYNAMIC_LINKER64 "/system/bin/linker64"
