mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 10:22:10 +00:00
e743e7ae6e
Add one copy of the function into each of the libraries, similarly to what we do for log2_tab. When using static libs, only one copy of the file_open.o object file gets included, while when using shared libraries, each of them get a copy of its own. This fixes DLL builds with a statically linked C runtime, where each DLL effectively has got its own instance of the C runtime, where file descriptors can't be shared across runtimes. On systems not using msvcrt, the function is not duplicated. Signed-off-by: Martin Storsjö <martin@martin.st>
38 lines
1.6 KiB
Makefile
38 lines
1.6 KiB
Makefile
NAME = avdevice
|
|
FFLIBS = avformat avcodec avutil
|
|
|
|
HEADERS = avdevice.h \
|
|
version.h \
|
|
|
|
OBJS = alldevices.o \
|
|
avdevice.o \
|
|
|
|
OBJS-$(HAVE_MSVCRT) += file_open.o
|
|
|
|
# input/output devices
|
|
OBJS-$(CONFIG_ALSA_INDEV) += alsa-audio-common.o \
|
|
alsa-audio-dec.o
|
|
OBJS-$(CONFIG_ALSA_OUTDEV) += alsa-audio-common.o \
|
|
alsa-audio-enc.o
|
|
OBJS-$(CONFIG_BKTR_INDEV) += bktr.o
|
|
OBJS-$(CONFIG_DV1394_INDEV) += dv1394.o
|
|
OBJS-$(CONFIG_FBDEV_INDEV) += fbdev.o
|
|
OBJS-$(CONFIG_JACK_INDEV) += jack_audio.o timefilter.o
|
|
OBJS-$(CONFIG_OSS_INDEV) += oss_audio.o
|
|
OBJS-$(CONFIG_OSS_OUTDEV) += oss_audio.o
|
|
OBJS-$(CONFIG_PULSE_INDEV) += pulse.o
|
|
OBJS-$(CONFIG_SNDIO_INDEV) += sndio_common.o sndio_dec.o
|
|
OBJS-$(CONFIG_SNDIO_OUTDEV) += sndio_common.o sndio_enc.o
|
|
OBJS-$(CONFIG_V4L2_INDEV) += v4l2.o
|
|
OBJS-$(CONFIG_VFWCAP_INDEV) += vfwcap.o
|
|
OBJS-$(CONFIG_X11GRAB_INDEV) += x11grab.o
|
|
|
|
# external libraries
|
|
OBJS-$(CONFIG_LIBCDIO_INDEV) += libcdio.o
|
|
OBJS-$(CONFIG_LIBDC1394_INDEV) += libdc1394.o
|
|
|
|
SKIPHEADERS-$(HAVE_ALSA_ASOUNDLIB_H) += alsa-audio.h
|
|
SKIPHEADERS-$(HAVE_SNDIO_H) += sndio_common.h
|
|
|
|
TESTPROGS = timefilter
|