[lfs-support] lfs tool chain technique LFS-7.1
jasmine at iwanek.co.uk
Sat Aug 25 18:43:09 PDT 2012
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...
>> (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
>> bash-4.2# mkdir /usr/bin/temp
>> bash-4.2# echo "echo \"Well, that shouldn't have run.\"" >
>> 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
>> declare -x PATH="/usr/bin:/bin:/usr/sbin:/sbin"
>> If subdirectories were automatically included in the path, that
>> 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... :)
On the bright side, I believe with my pointer at configure magic I may
well have answered Hadi's original question.
More information about the lfs-support