Martin Storsjö <mar...@martin.st> writes:

> On Sat, 13 Oct 2012, Martin Storsjö wrote:
>
>>>> diff --git a/library.mak b/library.mak
>>>> index b365935..318fe86 100644
>>>> --- a/library.mak
>>>> +++ b/library.mak
>>>> @@ -19,6 +19,7 @@ $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm
>>>>    $(DEPYASM) $(YASMFLAGS) -I $(<D)/ -M -o $@ $< > $(@:.o=.d)
>>>>    $(YASM) $(YASMFLAGS) -I $(<D)/ -o $@ $<
>>>>
>>>> +$(OBJS): CPPFLAGS := -DCOMPILING_$(NAME)=1 $(CPPFLAGS)
>>>
>>> This should use +=
>>
>> Ok, will change.
>
> Actually, there seems to be some subtlety here I don't understand
> off-hand - when I change this to use +=, it ends up defining
> -DCOMPILING_avutil while building avcodec (probably while building all
> of them).

Ah, that's because evaluation of $(NAME) is deferred.  If you stick that
line inside the RULES macro it should work.

-- 
Måns Rullgård
m...@mansr.com
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to