Add ldd and ldconfig support, template packages derived from gcc and uclibc
[openwrt-10.03/.git] / package / base-files / files / etc / profile
index aee0de2b8463dfc10b5b884b3ae6001195edd220..c5d7e025804b63ae2c8eb80246441ebf3b201de6 100644 (file)
@@ -10,5 +10,5 @@ alias more=less
 [ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
 
 arp() { cat /proc/net/arp; }
-ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
+[ -z /bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
 reboot() { ifdown wan 2>&1 >/dev/null ; /sbin/reboot; }