History

configure: always enable gnu_windres if available

Use the appropiate Makefile variable to ensure the resource file is only built into shared libraries instead.

Timo Rothenpieler committed 4 years ago

Commit b77fff41 parent 6ded80a9 files · +10 −10Browse files

Unified · Split

9 files
  1. configure +2 −2
  2. libavcodec/Makefile +1 −1
  3. libavdevice/Makefile +1 −1
  4. libavfilter/Makefile +1 −1
  5. libavformat/Makefile +1 −1
  6. libavutil/Makefile +1 −1
  7. libpostproc/Makefile +1 −1
  8. libswresample/Makefile +1 −1
  9. libswscale/Makefile +1 −1
configure+2−2
@@ -5571,7 +5571,7 @@ case $target_os in · 5570 unmodified lines
55715571 # Cannot build both shared and static libs when using dllimport.
55725572 disable static
55735573 fi
5574− enabled shared && ! enabled small && test_cmd $windres --version && enable gnu_windres
5574+ ! enabled small && test_cmd $windres --version && enable gnu_windres
55755575 enabled x86_32 && check_ldflags -Wl,--large-address-aware
55765576 shlibdir_default="$bindir_default"
55775577 SLIBPREF=""
@@ -5650,7 +5650,7 @@ case $target_os in · 72 unmodified lines
56505650 SHFLAGS='-shared -Wl,--out-implib,$(SUBDIR)lib$(FULLNAME).dll.a'
56515651 enabled x86_64 && objformat="win64" || objformat="win32"
56525652 enable dos_paths
5653− enabled shared && ! enabled small && test_cmd $windres --version && enable gnu_windres
5653+ ! enabled small && test_cmd $windres --version && enable gnu_windres
56545654 add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
56555655 ;;
56565656 *-dos|freedos|opendos)
libavcodec/Makefile+1−1
@@ -1218,7 +1218,7 @@ OBJS-$(HAVE_THREADS) += pthread.o pthread_slice.o pthread_fram · 1217 unmodified lines
12181218 OBJS-$(CONFIG_FRAME_THREAD_ENCODER) += frame_thread_encoder.o
12191219
12201220 # Windows resource file
1221−SLIBOBJS-$(HAVE_GNU_WINDRES) += avcodecres.o
1221+SHLIBOBJS-$(HAVE_GNU_WINDRES) += avcodecres.o
12221222
12231223 SKIPHEADERS += %_tablegen.h \
12241224 %_tables.h \
libavdevice/Makefile+1−1
@@ -59,7 +59,7 @@ OBJS-$(CONFIG_LIBDC1394_INDEV) += libdc1394.o · 58 unmodified lines
5959 SHLIBOBJS-$(CONFIG_DECKLINK_INDEV) += reverse.o
6060
6161 # Windows resource file
62−SLIBOBJS-$(HAVE_GNU_WINDRES) += avdeviceres.o
62+SHLIBOBJS-$(HAVE_GNU_WINDRES) += avdeviceres.o
6363
6464 SKIPHEADERS += decklink_common.h
6565 SKIPHEADERS-$(CONFIG_DECKLINK) += decklink_enc.h decklink_dec.h \
libavfilter/Makefile+1−1
@@ -605,7 +605,7 @@ OBJS-$(CONFIG_MOVIE_FILTER) += src_movie.o · 604 unmodified lines
605605 SHLIBOBJS += log2_tab.o
606606
607607 # Windows resource file
608−SLIBOBJS-$(HAVE_GNU_WINDRES) += avfilterres.o
608+SHLIBOBJS-$(HAVE_GNU_WINDRES) += avfilterres.o
609609
610610 SKIPHEADERS-$(CONFIG_LCMS2) += fflcms2.h
611611 SKIPHEADERS-$(CONFIG_LIBVIDSTAB) += vidstabutils.h
libavformat/Makefile+1−1
@@ -714,7 +714,7 @@ SHLIBOBJS-$(CONFIG_SPDIF_MUXER) += dca_sample_rate_tab.o · 713 unmodified lines
714714 OBJS-$(CONFIG_IEC61883_INDEV) += dv.o
715715
716716 # Windows resource file
717−SLIBOBJS-$(HAVE_GNU_WINDRES) += avformatres.o
717+SHLIBOBJS-$(HAVE_GNU_WINDRES) += avformatres.o
718718
719719 SKIPHEADERS-$(CONFIG_IMF_DEMUXER) += imf.h
720720 SKIPHEADERS-$(CONFIG_FFRTMPCRYPT_PROTOCOL) += rtmpdh.h
libavutil/Makefile+1−1
@@ -201,7 +201,7 @@ OBJS-$(!CONFIG_VULKAN) += hwcontext_stub.o · 200 unmodified lines
201201 OBJS += $(COMPAT_OBJS:%=../compat/%)
202202
203203 # Windows resource file
204−SLIBOBJS-$(HAVE_GNU_WINDRES) += avutilres.o
204+SHLIBOBJS-$(HAVE_GNU_WINDRES) += avutilres.o
205205
206206 SKIPHEADERS += objc.h
207207 SKIPHEADERS-$(HAVE_CUDA_H) += hwcontext_cuda.h
libpostproc/Makefile+1−1
@@ -10,4 +10,4 @@ OBJS = postprocess.o \ · 9 unmodified lines
1010 version.o \
1111
1212 # Windows resource file
13−SLIBOBJS-$(HAVE_GNU_WINDRES) += postprocres.o
13+SHLIBOBJS-$(HAVE_GNU_WINDRES) += postprocres.o
libswresample/Makefile+1−1
@@ -22,6 +22,6 @@ OBJS-$(CONFIG_LIBSOXR) += soxr_resample.o · 21 unmodified lines
2222 SHLIBOBJS += log2_tab.o
2323
2424 # Windows resource file
25−SLIBOBJS-$(HAVE_GNU_WINDRES) += swresampleres.o
25+SHLIBOBJS-$(HAVE_GNU_WINDRES) += swresampleres.o
2626
2727 TESTPROGS = swresample
libswscale/Makefile+1−1
@@ -25,7 +25,7 @@ OBJS = alphablend.o \ · 24 unmodified lines
2525 SHLIBOBJS += log2_tab.o
2626
2727 # Windows resource file
28−SLIBOBJS-$(HAVE_GNU_WINDRES) += swscaleres.o
28+SHLIBOBJS-$(HAVE_GNU_WINDRES) += swscaleres.o
2929
3030 TESTPROGS = colorspace \
3131 floatimg_cmp \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t