diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-31 21:40:49 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-04-03 06:04:57 +0200 |
commit | 1722f08acf801b47fbb788ef4c07d7431e028304 (patch) | |
tree | 008942fb7f8b5d60ccbf32e9b11bcd50abfb36b4 | |
parent | 52d766e5c271a5cee4d4a3715ee1694591107ce3 (diff) | |
download | ffmpeg-1722f08acf801b47fbb788ef4c07d7431e028304.tar.gz |
avutil/Makefile: Only include half2float, float2half when needed
They are not needed for shared builds (and because --gc-sections
is not the default for shared builds, they were included by default
included in libavutil since bf22c4cc3e005c01f50e233b1582fd1d8051aed9).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavutil/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libavutil/Makefile b/libavutil/Makefile index 6fe92aa1c9..9ef118016b 100644 --- a/libavutil/Makefile +++ b/libavutil/Makefile @@ -139,12 +139,10 @@ OBJS = adler32.o \ file.o \ file_open.o \ float_dsp.o \ - float2half.o \ float_scalarproduct.o \ film_grain_params.o \ fixed_dsp.o \ frame.o \ - half2float.o \ hash.o \ hdr_dynamic_metadata.o \ hdr_dynamic_vivid_metadata.o \ @@ -221,6 +219,13 @@ OBJS-$(!CONFIG_VULKAN) += hwcontext_stub.o OBJS += $(COMPAT_OBJS:%=../compat/%) +# Object files to satisfy dependencies of other libraries for static builds +STLIBOBJS-$(CONFIG_EXR_DECODER) += half2float.o float2half.o +STLIBOBJS-$(CONFIG_EXR_ENCODER) += float2half.o +STLIBOBJS-$(CONFIG_PHM_DECODER) += half2float.o +STLIBOBJS-$(CONFIG_PHM_ENCODER) += float2half.o +STLIBOBJS-$(CONFIG_SWSCALE) += half2float.o + # Windows resource file SHLIBOBJS-$(HAVE_GNU_WINDRES) += avutilres.o |