Ticket #10347: 0001-examples-fix-build-of-mux-and-resample_audio.patch

File 0001-examples-fix-build-of-mux-and-resample_audio.patch, 1.1 KB (added by Sebastian Ramacher, 3 years ago)

Patch

  • doc/examples/Makefile.example

    From ef32465b61342e970a010902b6586965b6bac433 Mon Sep 17 00:00:00 2001
    From: Sebastian Ramacher <sramacher@debian.org>
    Date: Sun, 16 Apr 2023 13:39:27 +0200
    Subject: [PATCH] examples: fix build of mux and resample_audio
    
    The commits 0a69ca656b7178c260f68d50d07b2e16a073050c and
    cd8211527efbb9cad19db1c0d033da0749836e43 renamed the examples, but the
    targets were not updated. Hence, the builds are missing -lm.
    
    Signed-off-by: Sebastian Ramacher <sramacher@debian.org>
    ---
     doc/examples/Makefile.example | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/doc/examples/Makefile.example b/doc/examples/Makefile.example
    index 01712f42d9..dee9ebf2f0 100644
    a b OBJS=$(addsuffix .o,$(EXAMPLES))  
    4343# the following examples make explicit use of the math library
    4444avcodec:           LDLIBS += -lm
    4545encode_audio:      LDLIBS += -lm
    46 muxing:            LDLIBS += -lm
    47 resampling_audio:  LDLIBS += -lm
     46mux:               LDLIBS += -lm
     47resample_audio:    LDLIBS += -lm
    4848
    4949.phony: all clean-test clean
    5050