From b14a89bbd005449f9f8a3cebebc9f1f4988279f1 Mon Sep 17 00:00:00 2001 From: kyak Date: Tue, 23 Aug 2011 23:10:44 +0400 Subject: [PATCH] gcc-mips workaround --- .../etc/uci-defaults/04-gcc-mips-work-around | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 nanonote-files/script-files/etc/uci-defaults/04-gcc-mips-work-around diff --git a/nanonote-files/script-files/etc/uci-defaults/04-gcc-mips-work-around b/nanonote-files/script-files/etc/uci-defaults/04-gcc-mips-work-around new file mode 100644 index 0000000..dabae92 --- /dev/null +++ b/nanonote-files/script-files/etc/uci-defaults/04-gcc-mips-work-around @@ -0,0 +1,9 @@ +#!/bin/sh + +#we use some files from host's openwrt toolchain for gcc-mips package, +#and the host's gcc version (linaro) is now 4.5.4. +#this will be fixed when we catch up with openwrt upstream, +#workaround for now +for i in $(find /usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.5.4 -type f); do + ln -s $i ${i/4.5.4/4.5.2} +done