From ae26e871af2605f55e581f9d99651e963df04bc6 Mon Sep 17 00:00:00 2001 From: Eric Brisco Date: Sun, 22 Nov 2020 15:00:14 -0500 Subject: [PATCH] FIX: build for emcc 2.0.9, -r linking flag is required and a non-executable file extension to produce object files instead of javascript files --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index c3a7c61..8ab0254 100644 --- a/Makefile +++ b/Makefile @@ -194,10 +194,9 @@ build/ffmpeg-webm/ffmpeg.bc: $(WEBM_SHARED_DEPS) --enable-libopus \ --enable-libvpx \ --extra-cflags="-s USE_ZLIB=1 -I../libvpx/dist/include" \ - --extra-ldflags="-L../libvpx/dist/lib" \ + --extra-ldflags="-r -L../libvpx/dist/lib" \ && \ - emmake make -j && \ - cp ffmpeg ffmpeg.bc + emmake make -j EXESUF=.bc build/ffmpeg-mp4/ffmpeg.bc: $(MP4_SHARED_DEPS) cd build/ffmpeg-mp4 && \ @@ -209,10 +208,9 @@ build/ffmpeg-mp4/ffmpeg.bc: $(MP4_SHARED_DEPS) --enable-libmp3lame \ --enable-libx264 \ --extra-cflags="-s USE_ZLIB=1 -I../lame/dist/include" \ - --extra-ldflags="-L../lame/dist/lib" \ + --extra-ldflags="-r -L../lame/dist/lib" \ && \ - emmake make -j && \ - cp ffmpeg ffmpeg.bc + emmake make -j EXESUF=.bc EMCC_COMMON_ARGS = \ -O3 \