Commit c34c0bf8 authored by Ghislain MARY's avatar Ghislain MARY

Remove useless /SAFESEH:NO linker flags when building with Visual Studio.

parent 79b6b49f
......@@ -28,8 +28,5 @@ set(EP_antlr3c_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_antlr3c_IGNORE_WARNINGS TRUE)
set(EP_antlr3c_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
if(MSVC)
set(EP_antlr3c_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_antlr3c_CMAKE_OPTIONS "-DENABLE_DEBUGGER=NO")
......@@ -43,9 +43,6 @@ if(ENABLE_UNIT_TESTS AND LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_bctoolbox_DEPENDENCIES EP_bcunit)
endif()
if(MSVC)
set(EP_bctoolbox_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
# TODO: Activate strict compilation options on IOS
if(IOS)
list(APPEND EP_bctoolbox_CMAKE_OPTIONS "-DENABLE_STRICT=NO")
......
......@@ -27,8 +27,5 @@ set(EP_bcunit_EXTERNAL_SOURCE_PATHS "bcunit")
set(EP_bcunit_IGNORE_WARNINGS TRUE)
set(EP_bcunit_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
if(MSVC)
set(EP_bcunit_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_bcunit_CMAKE_OPTIONS "-DENABLE_AUTOMATED=YES" "-DENABLE_CONSOLE=NO")
......@@ -32,9 +32,6 @@ if(EP_belcard_FORCE_AUTOTOOLS)
else()
set(EP_belcard_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
endif()
if(MSVC)
set(EP_belcard_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
# TODO: Activate strict compilation options on IOS
if(IOS)
......
......@@ -38,10 +38,6 @@ if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
endif()
endif()
if(MSVC)
set(EP_bellesip_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_bellesip_CMAKE_OPTIONS "-DENABLE_RTP_MAP_ALWAYS_IN_SDP=${ENABLE_RTP_MAP_ALWAYS_IN_SDP}")
# TODO: Activate strict compilation options on IOS
......
......@@ -32,9 +32,6 @@ else()
set(EP_belr_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
endif()
set(EP_belr_DEPENDENCIES EP_bctoolbox)
if(MSVC)
set(EP_belr_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
# TODO: Activate strict compilation options on IOS
if(IOS)
......
......@@ -26,6 +26,3 @@ set(EP_bv16_GIT_TAG "6899f2759c7b19d5402335d3a937c53020abfeca" CACHE STRING "bv1
set(EP_bv16_EXTERNAL_SOURCE_PATHS "externals/bv16-floatingpoint")
set(EP_bv16_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
if(MSVC)
set(EP_bv16_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
......@@ -32,9 +32,6 @@ if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT APPLE)
# Do not build xml2 on Apple systems (Mac OS X and iOS), it is provided by the system
list(APPEND EP_bzrtp_DEPENDENCIES EP_xml2)
endif()
if(MSVC)
set(EP_bzrtp_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
if(MINGW)
set(EP_bzrtp_EXTRA_CPPFLAGS "-D__USE_MINGW_ANSI_STDIO")
endif()
......
......@@ -28,6 +28,3 @@ set(EP_gsm_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_gsm_IGNORE_WARNINGS TRUE)
set(EP_gsm_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
if(MSVC)
set(EP_gsm_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
......@@ -35,9 +35,6 @@ if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT APPLE)
list(APPEND EP_linphone_DEPENDENCIES EP_zlib)
endif()
endif()
if(MSVC)
set(EP_linphone_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_linphone_CMAKE_OPTIONS
"-DENABLE_GTK_UI=${ENABLE_GTK_UI}"
......
......@@ -31,5 +31,4 @@ set(EP_mbedtls_LINKING_TYPE "-DUSE_STATIC_MBEDTLS_LIBRARY=NO" "-DUSE_SHARED_MBED
set(EP_mbedtls_CMAKE_OPTIONS "-DENABLE_PROGRAMS=NO" "-DENABLE_TESTING=NO")
if(MSVC)
set(EP_mbedtls_EXTRA_CFLAGS "-DMBEDTLS_PLATFORM_SNPRINTF_MACRO=_snprintf -DMBEDTLS_EXPORTS")
set(EP_mbedtls_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
......@@ -36,9 +36,6 @@ set(EP_ms2_DEPENDENCIES EP_ortp EP_bctoolbox)
if(ANDROID)
list(APPEND EP_ms2_DEPENDENCIES EP_androidcpufeatures EP_androidsupport)
endif()
if(MSVC)
set(EP_ms2_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_ms2_CMAKE_OPTIONS
"-DENABLE_NON_FREE_CODECS=${ENABLE_NON_FREE_CODECS}"
......
......@@ -28,6 +28,3 @@ set(EP_msopenh264_GROUPABLE YES)
set(EP_msopenh264_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_PLUGIN_LINKING_TYPE})
set(EP_msopenh264_DEPENDENCIES EP_ms2 EP_openh264)
if(MSVC)
set(EP_msopenh264_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
......@@ -27,5 +27,4 @@ set(EP_mswasapi_EXTERNAL_SOURCE_PATHS "mswasapi")
set(EP_mswasapi_GROUPABLE YES)
set(EP_mswasapi_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_PLUGIN_LINKING_TYPE})
set(EP_mswasapi_EXTRA_LDFLAGS "/SAFESEH:NO")
set(EP_mswasapi_DEPENDENCIES EP_ms2)
......@@ -33,9 +33,6 @@ else()
set(EP_ortp_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
endif()
set(EP_ortp_DEPENDENCIES EP_bctoolbox)
if(MSVC)
set(EP_ortp_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_ortp_SPEC_FILE "ortp.spec")
set(EP_ortp_CMAKE_OPTIONS "-DENABLE_DOC=${ENABLE_DOC}")
......
......@@ -28,8 +28,5 @@ set(EP_polarssl_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_polarssl_IGNORE_WARNINGS TRUE)
set(EP_polarssl_LINKING_TYPE "-DUSE_SHARED_POLARSSL_LIBRARY=1")
if(MSVC)
set(EP_polarssl_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
set(EP_polarssl_CMAKE_OPTIONS "-DENABLE_PROGRAMS=0" "-DENABLE_TESTING=0")
......@@ -29,6 +29,3 @@ set(EP_speex_IGNORE_WARNINGS TRUE)
set(EP_speex_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
set(EP_speex_CMAKE_OPTIONS "-DENABLE_SPEEX_DSP=YES" "-DENABLE_SPEEX_CODEC=${ENABLE_SPEEX}")
if(MSVC)
set(EP_speex_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
......@@ -28,6 +28,3 @@ set(EP_srtp_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_srtp_IGNORE_WARNINGS TRUE)
set(EP_srtp_LINKING_TYPE ${DEFAULT_VALUE_CMAKE_LINKING_TYPE})
if(MSVC)
set(EP_srtp_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
......@@ -26,7 +26,3 @@ set(EP_zlib_GIT_TAG "91eb77a7c5bfe7b4cc6b722aa96548d7143a9936" CACHE STRING "zli
set(EP_zlib_EXTERNAL_SOURCE_PATHS "externals/zlib")
set(EP_zlib_MAY_BE_FOUND_ON_SYSTEM TRUE)
set(EP_zlib_IGNORE_WARNINGS TRUE)
if(MSVC)
set(EP_zlib_EXTRA_LDFLAGS "/SAFESEH:NO")
endif()
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