[vlc-commits] Link statically the libgcc libraries
Jean-Baptiste Kempf
git at videolan.org
Tue Oct 14 16:55:57 CEST 2014
npapi-vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Oct 14 16:55:24 2014 +0200| [70963c20cffb11849edaa90e3202fffcdae70dc7] | committer: Jean-Baptiste Kempf
Link statically the libgcc libraries
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=70963c20cffb11849edaa90e3202fffcdae70dc7
---
activex/Makefile.am | 3 ++-
npapi/Makefile.am | 4 ++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/activex/Makefile.am b/activex/Makefile.am
index 5eb721a..b62b43a 100644
--- a/activex/Makefile.am
+++ b/activex/Makefile.am
@@ -70,7 +70,8 @@ axvlc_la_SOURCES = \
axvlc_la_DEPENDENCIES = $(srcdir)/axvlc.def $(DATA_axvlc_rc)
axvlc_la_LDFLAGS = -Wl,$(srcdir)/axvlc.def -Wl,$(DATA_axvlc_rc) \
- -no-undefined -avoid-version -module
+ -no-undefined -avoid-version -module \
+ -Wc,--static -Wc,-static-libgcc
axvlc_la_LIBADD = ../common/libvlcplugin_common.la \
$(LIBVLC_LIBS) $(ACTIVEX_LIBS)
diff --git a/npapi/Makefile.am b/npapi/Makefile.am
index 9136f04..1c5667f 100644
--- a/npapi/Makefile.am
+++ b/npapi/Makefile.am
@@ -36,6 +36,10 @@ libvlcplugin_la_LDFLAGS = \
-module -avoid-version \
-no-undefined
+if HAVE_WIN32
+libvlcplugin_la_LDFLAGS += -Wc,--static -Wc,-static-libgcc
+endif
+
npvlc_la_SOURCES = $(libvlcplugin_la_SOURCES)
npvlc_la_DEPENDENCIES = $(libvlcplugin_la_DEPENDENCIES)
npvlc_la_LIBADD = $(libvlcplugin_la_LIBADD)
More information about the vlc-commits
mailing list