diff options
author | Tamir Duberstein <tamird@gmail.com> | 2017-04-06 21:22:33 -0400 |
---|---|---|
committer | Tamir Duberstein <tamird@gmail.com> | 2017-04-06 21:23:49 -0400 |
commit | 89468256ec0d9c63b6ed852a90183e70aecbbe3a (patch) | |
tree | 6afa334b9459dee7b71c041a52bfa86bda0f24e1 /scripts/build/libc | |
parent | 9571a97a4d2e3aedc5fa6807a920c619b9467c77 (diff) | |
download | crosstool-ng-89468256ec0d9c63b6ed852a90183e70aecbbe3a.tar.gz crosstool-ng-89468256ec0d9c63b6ed852a90183e70aecbbe3a.tar.bz2 crosstool-ng-89468256ec0d9c63b6ed852a90183e70aecbbe3a.zip |
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.
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/mingw.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build/libc/mingw.sh b/scripts/build/libc/mingw.sh index 3379d680..643e0f9e 100644 --- a/scripts/build/libc/mingw.sh +++ b/scripts/build/libc/mingw.sh @@ -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" |