X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fcreate-symlinks;h=19fc73ab8ba5740c92bc575983e2e2ad53424559;hb=44d3c1f9f0e8fc945206020c4bd7a15c5a457f55;hp=61167750685ef86a5959a0ab665ccc9289c7898d;hpb=f3c8db3027d5dc530e1f30c88e0235975211582e;p=hvlinux.git diff --git a/stage1/create-symlinks b/stage1/create-symlinks index 6116775..19fc73a 100755 --- a/stage1/create-symlinks +++ b/stage1/create-symlinks @@ -18,12 +18,14 @@ for link in ${source}/{bash,cat,echo,grep,pwd,sleep,stty}; do fi done +# 'env' symlink is for glib source=/tools/bin target=${LFS}/usr/bin -link=${source}/file -if [ ! -L ${target}/$(basename ${link}) ]; then - ln -sv ${link} ${target} -fi +for link in ${source}/{env,file}; do + if [ ! -L ${target}/$(basename ${link}) ]; then + ln -sv ${link} ${target} + fi +done source=/tools/lib target=${LFS}/usr/lib