Skip to content

Commit

Permalink
Add --dynamicbase linker flag for Win32
Browse files Browse the repository at this point in the history
Supposed to be an analog of the /DYNAMICBASE in MSVC, thus should help to work correctly with ASLR turned on
  • Loading branch information
iakov committed Sep 4, 2024
1 parent f0563f6 commit e46f819
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions global.pri
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ equals(TEMPLATE, lib) {
}
}

win32: QMAKE_LFLAGS *= -Wl,--dynamicbase

!nosanitizers:!clang:gcc:*-g++*:gcc4{
warning("Disabled sanitizers, failed to detect compiler version or too old compiler: $$QMAKE_CXX")
CONFIG += nosanitizers
Expand Down

0 comments on commit e46f819

Please sign in to comment.