[lfs-support] can't compile gcc pass 1

Tobias Gasser lfs at ebp-gasser.ch
Sun Jan 6 03:35:51 PST 2013

> AWK=`readlink -f /usr/bin/awk`
> awk=/usr/bin/awk
> [ "$AWK" ==  "/usr/bin/gawk" ] || die "$awk is not a symlink to gawk"

some distros started to drop the /usr hierarchy

the script should be a little smarter to accept the files not only in 
/usr/bin but just anywhere in $PATH

something like

awk=$( which awk )
AWK=$( readlink -f "${awk}" )
[ "${AWK%%\/gawk}" == "${AWK}" ] && die...


More information about the lfs-support mailing list