bug-automake
[Top][All Lists]
Advanced

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

bug#33085: using myprog_CXXFLAGS with VPATH prevents Makefile from findi


From: Mathieu Lirzin
Subject: bug#33085: using myprog_CXXFLAGS with VPATH prevents Makefile from finding sources
Date: Tue, 23 Oct 2018 19:51:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello Nick,

Nick Bowler <address@hidden> writes:

> On 10/18/18, Julien COURTAT <address@hidden> wrote:
>> Here's my bug report, I'm building my software out of the source tree, this
>> is called parallel build (very nice feature).
>> The way to reproduce the issue is very simple, set myprog_CXXFLAGS = -DANY
>> and address@hidden@ and the corresponding Makefile won't find my source file.
>> Replace myprog_CXXFLAGS by AM_CXXFLAGS and it works well.
>> Autoconf 2.69, automake 1.13.4
> [...]
>> Makefile.am :
>> bin_PROGRAMS=myprog
>> myprog_SOURCES  = Main.cpp
>> myprog_CXXFLAGS = -DANY
>> AM_CPPFLAGS  = address@hidden@
>> address@hidden@
>
> Don't set VPATH like this.  It supersedes the definition supplied by
> Automake and is almost certainly the cause of your problems.

I agree with your analysis, so I am closing this bug.

Thanks.

-- 
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37





reply via email to

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