summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-12-01 09:40:09 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-12-01 09:40:19 +0100
commitdd89a8170ac667aff4e1f18b1ac641eb76e5b6ee (patch)
tree7e95cdcd110288540b98a57f6801fb5241ff6ba1
parentb025c445ec226a279f7ec5d56ac320a0d53bf2cf (diff)
aa
-rw-r--r--CMakeLists.txt1
-rw-r--r--userconfig-sthalik@Windows-GNU.cmake3
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c39a6e0b..515a696b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,6 +113,7 @@ endif()
if(NOT APPLE AND NOT WIN32)
add_compile_options(-fno-plt)
add_link_options(-Wl,-z,relro,-z,now)
+ add_link_options(-Wl,-z,nodlopen -Wl,-z,noexecstack)
endif()
add_definitions(
diff --git a/userconfig-sthalik@Windows-GNU.cmake b/userconfig-sthalik@Windows-GNU.cmake
index 18d8693b..84de67b2 100644
--- a/userconfig-sthalik@Windows-GNU.cmake
+++ b/userconfig-sthalik@Windows-GNU.cmake
@@ -19,8 +19,7 @@ set(OpenCV_DIR "f:/dev/opentrack-depends/opencv/build-gcc/install" CACHE PATH ""
if(CMAKE_BUILD_TYPE STREQUAL "DEBUG")
add_definitions(-D_GLIBCXX_ASSERTIONS)
add_definitions(-D_GLIBCXX_USE_DEPRECATED=0 -D_GLIBCXX_USE_CXX11_ABI)
- # todo recompile opencv
- #add_definitions(-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_GLIBCXX_DEBUG_BACKTRACE)
+ add_definitions(-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_GLIBCXX_DEBUG_BACKTRACE)
endif()
set(FLOORMAT_SUBMODULE-SDL2 1)