In case the glibc is built without dlconf support, the
/hal/etc/ld.so.cache building attempt to results in an error about
unsupported `-I` option by ld.so. This commit turns out the display of
the error in this case.
Change-Id: I0f0bf043ebf3e94753bb24ba848889197888c01e
/hal/lib64
EOF
-/usr/sbin/ldconfig -I -C /hal/etc/ld.so.cache -f /tmp/dlconf.txt
+ldconfig_result=$(/usr/sbin/ldconfig -I -C /hal/etc/ld.so.cache -f /tmp/dlconf.txt 2>&1)
+if [ $? != 0 ]; then
+ if [[ "$ldconfig_result" == *"invalid option -- 'I'"* ]]; then
+ echo "/hal/etc/ld.so.cache will not be generated - glibc was compiled without dlconf support"
+ else
+ echo "$ldconfig_result"
+ fi
+fi