On 2012-08-26 02:40, Eleanore Boyd wrote: > On 8/25/2012 8:26 PM, Jasmine Iwanek wrote: >> Not quite true elly, configure has some code to search in certain >> relative paths from the prefix, if you take a look at the build logs >> you'll find lots of references like: >> >> checking for ld... >> >> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld >> >> (That one is from gcc pass 2 in 7.2 dev chapter 5) >> >> If you want to test the theory, make a subdirectory under /usr/bin >> like >> so >> >> bash-4.2# mkdir /usr/bin/temp >> bash-4.2# echo "echo \"Well, that shouldn't have run.\"" > >> /usr/bin/temp/sillyprog >> bash-4.2# chmod 755 /usr/bin/temp/sillyprog >> bash-4.2# sillyprog >> bash: sillyprog: command not found >> >> you'll notice it's not found as it's not in the path: >> bash-4.2# export >> <snip> >> declare -x PATH="/usr/bin:/bin:/usr/sbin:/sbin" >> <snip> >> >> If subdirectories were automatically included in the path, that >> would >> make for a bit of a security problem. >> >> -- >> Jasmine Iwanek >> >> > Ah. I assumed that it would have, since the binaries are in the > subfolders, and not in the root of /tools. > > Shows just how much I know... :) > > Elly
On the bright side, I believe with my pointer at configure magic I may well have answered Hadi's original question. -- Jasmine Iwanek -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
