GNOME Bugzilla – Bug 670314
Don't prefix object name with target name because of VALAFLAGS
Last modified: 2012-02-22 20:43:59 UTC
Created attachment 207877 [details] [review] am-project: don't prefix object name with target name because of VALAFLAGS For some reason, automake doesn't add the target name as a prefix to object files if there is only VALAFLAGS. Removing AM_PROPERTY_COMPILATION_FLAG fixes the issue, and it seems this is the only use for this, so here is a patch that does that.
*** Bug 670313 has been marked as a duplicate of this bug. ***
Just for confirmation, This is rather a bug in autotools, isn't it? I think the .vala file is compiled and this is mandatory if you have two targets using the same source file but with different flags. Else, the patch looks fine.
I don't, it's like this in automake and I don't want to think about it. Ultimately, the users are going to blame anjuta, but at the same time, if it ever gets fixed in automake, we'd be in the same situation again. I'll let you decide what to do.
Review of attachment 207877 [details] [review]: Your patch is fine. I have committed it. If something change in autotools, we will try to find a solution. I have renamed the flag with a more explicit name because now it must be used only for this.