From de75a672071f8e281efb6985c21bb2d83e0095a9 Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand" Date: Mon, 2 Sep 2013 11:39:56 +0200 Subject: [PATCH] hints for CPU model Marvell Kirkwood mv6282 ARMv5te Tested on Synology DS213 architecture arm5tel seems to differ from other ARM On Synology, all development is installed under /opt LANG settings other than C are not (really) supported --- hints/linux.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/hints/linux.sh b/hints/linux.sh index a148248..8300a47 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -361,6 +361,35 @@ if [ -r /usr/lib/libndbm.so -a -x /usr/bin/nm ] ; then fi fi +# Linux on ARM. This is just one case, possibly needs more exceptions +case "`uname -m`" in + arm*tel) + if [ -d /opt/arm-none-linux-gnueabi ]; then + # Tested on Synology DS213 + # CPU model Marvell Kirkwood mv6282 ARMv5te + # Linux 2.6.32.12 #3211 Tue Apr 16 20:04:57 CST 2013 armv5tel GNU/Linux + # All development stuff is installed in /opt, which is probably a + # symbolic link to /volum1/@opt + # Without /opt/* nothing works. The devel tools installed with ipkg + # all end up in /opt + export LD_LIBRARY_PATH=/opt/local/lib:/opt/lib:/usr/local/lib:/usr/lib:/lib:${LD_LIBRARY_PATH:-} + if [ "$LANG" = "" -o "$LANG" = "C" ]; then + echo 'Your LANG is safe' + else + echo 'Please set $LANG to "C". All other $LANG settings will cause havoc' >&4 + LANG=C + fi + echo 'Setting up to use /opt/*' >&4 + locincpth="/opt/local/include /opt/include $locincpth" + libpth="/opt/local/lib /opt/lib $libpth" + libspth="/opt/local/lib /opt/lib $libspth" + loclibpth="/opt/local/lib /opt/lib $loclibpth" + # POSIX will not link without the pthread lib + libswanted="$libswanted pthread m crypt" + echo "$libswanted" >&4 + fi + ;; +esac # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. -- 2.7.4