[FFmpeg-devel] [PATCH] Makefile: generate stripped CLI tools directly instead of copying unstripped ones first

James Almer jamrial at gmail.com
Sat Oct 7 02:20:33 EEST 2017


On 10/6/2017 5:20 PM, Marton Balint wrote:
> Signed-off-by: Marton Balint <cus at passwd.hu>
> ---
>  Makefile | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 4a1253a052..adb8330fa0 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -97,8 +97,7 @@ include $(SRC_PATH)/doc/examples/Makefile
>  libavcodec/utils.o libavformat/utils.o libavdevice/avdevice.o libavfilter/avfilter.o libavutil/utils.o libpostproc/postprocess.o libswresample/swresample.o libswscale/utils.o : libavutil/ffversion.h
>  
>  $(PROGS): %$(PROGSSUF)$(EXESUF): %$(PROGSSUF)_g$(EXESUF)
> -	$(CP) $< $@
> -	$(STRIP) $@
> +	$(STRIP) -o $@ $<

LGTM. This is the best thing after stripping on install, which seems to
be disliked.

>  
>  %$(PROGSSUF)_g$(EXESUF): $(FF_DEP_LIBS)
>  	$(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(OBJS-$*) $(FF_EXTRALIBS)
> 



More information about the ffmpeg-devel mailing list