automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning - non-POSIX variable name


From: Eric Blake
Subject: Re: Warning - non-POSIX variable name
Date: Wed, 9 Aug 2017 12:39:00 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 08/09/2017 12:02 PM, Warren Young wrote:
> On Aug 9, 2017, at 9:00 AM, Bob Friesenhahn <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]