summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-12 17:00:06 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-12-13 16:16:40 +0100
commit262e7439c6d58564d21ffffb05ade84bac4482ef (patch)
treeb4189f859a8661518a0e6254360a62c54295ec3a /libavcodec
parent40984af0c595459b31d7c230196b1321680ece39 (diff)
avcodec/x86/Makefile: Don't build empty files
simple_idct.asm is 32 bit-only since bfb28b5ce89f3e950214b67ea95b45e3355c2caf, whereas simple_idct10.asm is x64-only. So don't build the ultimately unneeded and empty files, as some linkers complain about this: "ranlib: file: libavcodec/libavcodec.a(simple_idct.o) has no symbols" (this is from an Xcode toolchain as reported by Ronald S. Bultje). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/x86/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/x86/Makefile b/libavcodec/x86/Makefile
index 6f62878081..118daca333 100644
--- a/libavcodec/x86/Makefile
+++ b/libavcodec/x86/Makefile
@@ -138,8 +138,11 @@ X86ASM-OBJS-$(CONFIG_QPELDSP) += x86/qpeldsp.o \
X86ASM-OBJS-$(CONFIG_RV34DSP) += x86/rv34dsp.o
X86ASM-OBJS-$(CONFIG_VC1DSP) += x86/vc1dsp_loopfilter.o \
x86/vc1dsp_mc.o
-X86ASM-OBJS-$(CONFIG_IDCTDSP) += x86/simple_idct10.o \
- x86/simple_idct.o
+ifdef ARCH_X86_64
+X86ASM-OBJS-$(CONFIG_IDCTDSP) += x86/simple_idct10.o
+else
+X86ASM-OBJS-$(CONFIG_IDCTDSP) += x86/simple_idct.o
+endif
X86ASM-OBJS-$(CONFIG_VIDEODSP) += x86/videodsp.o
X86ASM-OBJS-$(CONFIG_VP3DSP) += x86/vp3dsp.o
X86ASM-OBJS-$(CONFIG_VP8DSP) += x86/vp8dsp.o \