mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-20 09:06:19 +00:00
MinGW: add --enable-secure-api config option
Without this flag, MinGW does not expose secure variants of functions such as strcpy_s. See https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/crt/sec_api/string_s.h#l11.
This commit is contained in:
parent
9571a97a4d
commit
89468256ec
@ -128,6 +128,10 @@ config WINAPI_VERSION
|
||||
help
|
||||
Enter the version number of the Windows API files to use
|
||||
|
||||
config MINGW_SECURE_API
|
||||
bool "Expose secure API prototypes"
|
||||
default y
|
||||
|
||||
config MINGW_DIRECTX
|
||||
bool "Include DirectX development files"
|
||||
|
||||
|
@ -40,6 +40,11 @@ do_libc_start_files() {
|
||||
:) ;;
|
||||
esac
|
||||
|
||||
case "${CT_MINGW_SECURE_API}" in
|
||||
:y) sdk_opts+=( "--enable-secure-api" );;
|
||||
:) ;;
|
||||
esac
|
||||
|
||||
CT_mkdir_pushd "${CT_BUILD_DIR}/build-mingw-w64-headers"
|
||||
|
||||
CT_DoLog EXTRA "Configuring Headers"
|
||||
|
Loading…
x
Reference in New Issue
Block a user