Derek Buitenhuis <derek.buitenh...@gmail.com> writes: > On 22/07/2012 7:39 PM, Måns Rullgård wrote: >>>> +cc_e(){ >>>> >> + eval printf '%s\\n' $CC_E >>>> >> +} >>> > >>> > I'm probably ignorant here, but why is this needed? >> Why is what needed? > > cc_e(). Something preventing using $CC_E directly (I'm sure there is).
Same reason as cc_o. For both of these variables, the value will contain $@ which make expands to the target being built. In the shell, $@ expands to all arguments of the script/function. Passing the filename as argument to a function and, within the function, expanding the variable twice (eval provides a second expansion) gives the same result as in make. CC_E isn't currently used in the makefiles, but I have some plans... -- Måns Rullgård m...@mansr.com _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel