summaryrefslogtreecommitdiffstats
path: root/src/gcc.mk
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2017-01-29 02:23:21 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2017-02-01 02:08:50 (GMT)
commitdc159007693ea82c248ff20fbe880a1de91019a5 (patch)
treecf452c6913c579c3837dede41916e1d0f9dec3c2 /src/gcc.mk
parent36296ee42077ba6e6879b86f02eb3885ac14ebe6 (diff)
downloadmxe-dc159007693ea82c248ff20fbe880a1de91019a5.zip
mxe-dc159007693ea82c248ff20fbe880a1de91019a5.tar.gz
mxe-dc159007693ea82c248ff20fbe880a1de91019a5.tar.bz2
mingw-w64: add --enable-secure-api
This is needed to update glib to 2.51.1. It uses strerror_s, which is guarded by MINGW_HAS_SECURE_API. See http://win-builds.org/bugs/index.php?do=details&task_id=79 See https://sourceforge.net/p/tdm-gcc/bugs/305/
Diffstat (limited to 'src/gcc.mk')
-rw-r--r--src/gcc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gcc.mk b/src/gcc.mk
index be4ebfd..e352d44 100644
--- a/src/gcc.mk
+++ b/src/gcc.mk
@@ -78,6 +78,7 @@ define $(PKG)_BUILD_mingw-w64
--prefix='$(PREFIX)/$(TARGET)' \
--enable-sdk=all \
--enable-idl \
+ --enable-secure-api \
$(mingw-w64-headers_CONFIGURE_OPTS)
$(MAKE) -C '$(1).headers-build' install