Re: Using special characters (quote / space) in compiler-related variables

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

 



On 18.10.2011 21:21, Paul Eggert wrote:
> Yes, you're right: 'configure' does this:
> 
>   CXXFLAGS="-D__int64=\"long long\""
>   g++ $CXXFLAGS ...

I think, more flexible would be:

echo "g++ $CXXFLAGS" | bash

BTW, "make" is fine with following definition:

CXXFLAGS := -D__int="long long"

and it also evaluates the expansion for internal expression
"$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)" correctly.

> (because you told it to), and this is equivalent to:
> 
>   g++ "-D__int64=\"long" "long\"" ...
> 
> because that's how the shell works.  For this particular
> example, the splitting isn't what you want, but for
> other examples it is, and I'm afraid that it's unlikely that
> Autoconf would change its behavior in this area.

Double escaping should work in this case, but the problem is that the
substitution in Makefile will also contain double escapes, which will be
wrong.

-- 
With best regards,
Dmitry

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux