Skip to contentSkip to conversation

mingw-w64-runtime: Fix hardened build with gcc8

PATCH New Khem Raj 1 participant 2 messages Jun 7, 2018

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/2 mingw-w64-runtime: Fix hardened build with gcc8

---
 recipes-devtools/mingw-w64/mingw-w64-runtime_5.0.3.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-devtools/mingw-w64/mingw-w64-runtime_5.0.3.bb +2 -0
index d249c79..a33a739 100644
@@ -42,3 +42,5 @@ do_configure() {
 FILES_${PN} += "${exec_prefix}/libsrc"
 
 BBCLASSEXTEND = "nativesdk"
+
+SECURITY_CFLAGS_remove_mingw32 = "-fstack-protector-strong"
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/2 pthreads-win32: Disable ssp for pthreads-win32

It compiles before gcc-runtime so ssp is not
yet available

---
 recipes-devtools/pthreads-win32/pthreads-win32_2.9.1.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-devtools/pthreads-win32/pthreads-win32_2.9.1.bb +2 -0
index b462431..d9cd94e 100644
@@ -49,3 +49,5 @@ do_install() {
     install -m 0644 ${S}/pthreadGC2.dll ${D}${bindir}/libpthread-2.dll
     install -m 0644 ${S}/pthreadGC2.dll ${D}${bindir}/pthreadGC2.dll
 }
+
+SECURITY_CFLAGS_remove_mingw32 = "-fstack-protector-strong"
Signature · 1 line
2.17.1