diff options
author | Alexey Neyman <stilor@att.net> | 2017-04-07 10:13:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 10:13:06 -0700 |
commit | 16e703a4e5bc9277ce642d5a7a451c7025d495ad (patch) | |
tree | 460f38df67304ecf6e0877dca7d42d279d5b1552 | |
parent | 242c156d95b525c38a018ebf58c69ce4e1fb3283 (diff) | |
parent | 89468256ec0d9c63b6ed852a90183e70aecbbe3a (diff) | |
download | crosstool-ng-16e703a4e5bc9277ce642d5a7a451c7025d495ad.tar.gz crosstool-ng-16e703a4e5bc9277ce642d5a7a451c7025d495ad.tar.bz2 crosstool-ng-16e703a4e5bc9277ce642d5a7a451c7025d495ad.zip |
Merge pull request #676 from tamird/mingw-secure-api
MinGW: add --enable-secure-api config option
-rw-r--r-- | config/libc/mingw.in | 4 | ||||
-rw-r--r-- | scripts/build/libc/mingw.sh | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/config/libc/mingw.in b/config/libc/mingw.in index b1fb4e95..9b2cb28f 100644 --- a/config/libc/mingw.in +++ b/config/libc/mingw.in @@ -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" diff --git a/scripts/build/libc/mingw.sh b/scripts/build/libc/mingw.sh index b737b231..2f0dda53 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" |