Commit 7626fbca authored by Ghislain MARY's avatar Ghislain MARY

Add static-gcc linker option for ffmpeg, vpx and xml2 when compiling for Windows.

parent b25706c7
......@@ -48,6 +48,7 @@ set(EP_ffmpeg_ARCH "i386")
if(WIN32)
set(EP_ffmpeg_TARGET_OS "mingw32")
set(EP_ffmpeg_EXTRA_LDFLAGS "-static-libgcc")
else(WIN32)
if(APPLE)
set(EP_ffmpeg_TARGET_OS "darwin")
......
......@@ -40,6 +40,7 @@ set(EP_vpx_CONFIGURE_OPTIONS
if(WIN32)
set(EP_vpx_PATCH_COMMAND "${PATCH_PROGRAM}" "-p1" "-i" "${CMAKE_CURRENT_SOURCE_DIR}/builders/vpx/enable-shared-on-windows.patch")
set(EP_vpx_EXTRA_LDFLAGS "-static-libgcc")
endif(WIN32)
if(APPLE)
set(EP_vpx_TARGET "x86-darwin10-gcc")
......
......@@ -40,3 +40,6 @@ set(EP_xml2_CONFIGURE_OPTIONS
)
set(EP_xml2_LINKING_TYPE "--disable-static" "--enable-shared")
if(WIN32)
set(EP_xml2_EXTRA_LDFLAGS "-static-libgcc")
endif(WIN32)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment