[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33085: using myprog_CXXFLAGS with VPATH prevents Makefile from findi
bug#33085: using myprog_CXXFLAGS with VPATH prevents Makefile from finding sources
Tue, 23 Oct 2018 19:51:42 +0200
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
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 :
>> myprog_SOURCES = Main.cpp
>> myprog_CXXFLAGS = -DANY
>> AM_CPPFLAGS = 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.
GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37