Browse Source

Merge pull request #47456 from akien-mga/3.x-windows-mingw-aslr

Windows: Disable ASLR protection w/ MinGW, it breaks Mono
Rémi Verschelde 4 năm trước cách đây
mục cha
commit
10fb798883
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      platform/windows/detect.py

+ 1 - 1
platform/windows/detect.py

@@ -397,7 +397,7 @@ def configure_mingw(env):
     ## Compile flags
     ## Compile flags
 
 
     env.Append(CCFLAGS=["-mwindows"])
     env.Append(CCFLAGS=["-mwindows"])
-    env.Append(LINKFLAGS=["-Wl,--nxcompat", "-Wl,--dynamicbase"])
+    env.Append(LINKFLAGS=["-Wl,--nxcompat"])  # DEP protection. Not enabling ASLR for now, Mono crashes.
     env.Append(CPPDEFINES=["WINDOWS_ENABLED", "OPENGL_ENABLED", "WASAPI_ENABLED", "WINMIDI_ENABLED"])
     env.Append(CPPDEFINES=["WINDOWS_ENABLED", "OPENGL_ENABLED", "WASAPI_ENABLED", "WINMIDI_ENABLED"])
     env.Append(CPPDEFINES=[("WINVER", env["target_win_version"]), ("_WIN32_WINNT", env["target_win_version"])])
     env.Append(CPPDEFINES=[("WINVER", env["target_win_version"]), ("_WIN32_WINNT", env["target_win_version"])])
     env.Append(
     env.Append(