summaryrefslogtreecommitdiffstats
path: root/avbuild
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2017-08-24 22:07:04 +0300
committerMartin Storsjö <martin@martin.st>2017-08-31 14:22:06 +0300
commitabf1c058d1bd0ed1b820ea5e501a4484756f00b0 (patch)
treef2fad10a28333210b238629315577204491576d5 /avbuild
parente41daa62465036ad36ad0bd14e4936e848d7f07e (diff)
downloadffmpeg-streaming-abf1c058d1bd0ed1b820ea5e501a4484756f00b0.zip
ffmpeg-streaming-abf1c058d1bd0ed1b820ea5e501a4484756f00b0.tar.gz
msvc: Properly specify dllexport for data symbols shared across dll boundaries
We currently only have exported data symbols within libavcodec, but the concept is easy to extend to other libraries if necessary. The attribute declaration needs to be in a private header though, since we can't use CONFIG_SHARED in public installed headers. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'avbuild')
-rw-r--r--avbuild/library.mak2
1 files changed, 2 insertions, 0 deletions
diff --git a/avbuild/library.mak b/avbuild/library.mak
index 3075754..4e4b3f1 100644
--- a/avbuild/library.mak
+++ b/avbuild/library.mak
@@ -31,6 +31,8 @@ define RULES
$(TOOLS): THISLIB = $(NAME:%=$(LD_LIB))
$(TESTPROGS): THISLIB = $(SUBDIR)$(LIBNAME)
+$(LIBOBJS): CPPFLAGS += -DBUILDING_$(NAME)
+
$(TESTPROGS) $(TOOLS): %$(EXESUF): %.o
$$(LD) $(LDFLAGS) $(LDEXEFLAGS) $$(LD_O) $$(filter %.o,$$^) $$(THISLIB) $(FFEXTRALIBS) $$(EXTRALIBS-$$(*F)) $$(ELIBS)
OpenPOWER on IntegriCloud