Skip to content
Permalink
Browse files

Merge pull request #2427

2e1e227 build: MinGW fix gcc >= 9.1 build, enable stack protection (xiphon)
  • Loading branch information...
luigi1111 committed Nov 4, 2019
2 parents ee68bcb + 2e1e227 commit 7f7a39292c57f9b51090005d8a8e39297d988e0b
Showing with 12 additions and 1 deletion.
  1. +12 −1 monero-wallet-gui.pro
@@ -16,10 +16,21 @@ packagesExist(libusb-1.0) {
packagesExist(hidapi-libusb) {
PKGCONFIG += hidapi-libusb
}
!win32 {

GCC_VERSION = $$system("g++ -dumpversion")
GCC_VERSION = $$split(GCC_VERSION, .)
GCC_VERSION_MAJOR = $$member(GCC_VERSION, 0)
GCC_VERSION_MINOR = $$member(GCC_VERSION, 1)
greaterThan(GCC_VERSION_MAJOR, 9) | if(equals(GCC_VERSION_MAJOR, 9) : greaterThan(GCC_VERSION_MINOR, 0)) {
GCC_9_1_OR_GREATER = TRUE
}

!win32 | !isEmpty(GCC_9_1_OR_GREATER) {
QMAKE_CXXFLAGS += -fPIC -fstack-protector -fstack-protector-strong
QMAKE_LFLAGS += -fstack-protector -fstack-protector-strong
}

!win32 {
packagesExist(protobuf) {
PKGCONFIG += protobuf
}

0 comments on commit 7f7a392

Please sign in to comment.
You can’t perform that action at this time.