automake
[Top][All Lists]
Advanced

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

Re: Warning - non-POSIX variable name


From: Warren Young
Subject: Re: Warning - non-POSIX variable name
Date: Wed, 9 Aug 2017 11:02:00 -0600

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)

On other platforms, you can install GNU coreutils, but since there is often an 
OS-provided readlink implementation, you then have to have extra code to look 
for greadlink or similar and run that instead.

Is there a better way?


reply via email to

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