On 08/09/2017 12:02 PM, Warren Young wrote:
> On Aug 9, 2017, at 9:00 AM, Bob Friesenhahn <bfrie...@simple.dallas.tx.us> 
> wrote:
>> Passing a relative path to CC seems error prone since it only applies to the 
>> current working directory and will fail as soon as any Makefile recurses.
> Maybe you have a better answer to this related question: is there a portable 
> alternative to GNU readlink’s -f option?
> On a Linux box, I’d get around the problem you raise with: 
>     $ ./configure CC=$(readlink -f 
> ../../llvm-arm-toolchain-ship/3.8/bin/clang)

Why not just:

./configure CC="$PWD/../../llvm-arm-toolchain-ship/3.8/bin/clang"

which turns your relative name into an absolute one?

Do you HAVE to have the canonical name?

Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to