diff options
author | Stephen Hurd <shurd@FreeBSD.org> | 2024-12-27 22:31:50 +0000 |
---|---|---|
committer | Stephen Hurd <shurd@FreeBSD.org> | 2025-02-09 03:47:37 +0000 |
commit | cbc58c695e8029da1779cb4bc05c70986af1c22d (patch) | |
tree | 34e072faf5c12fd9c0a2d6337f603ad6d20cd5a9 /comms | |
parent | d3169967f129e1512e5e2aea2f46cd22b29dd662 (diff) |
comms/wsjtz: Give bin/jt9 an executable stack
jt9 is supposed to have an executable stack, but a bug in lld (now
fixed upstream) prevents that.
This change explicitly sets the required exectuable stack for jt9.
Much simpler than using mprotect et. al.
PR: 283670
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D48573
Diffstat (limited to 'comms')
-rw-r--r-- | comms/wsjtz/files/patch-CMakeLists.txt | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/comms/wsjtz/files/patch-CMakeLists.txt b/comms/wsjtz/files/patch-CMakeLists.txt index f174fe7d41ed..012db69b5b5a 100644 --- a/comms/wsjtz/files/patch-CMakeLists.txt +++ b/comms/wsjtz/files/patch-CMakeLists.txt @@ -35,7 +35,7 @@ # # fftw3 single precision library # -@@ -923,7 +941,7 @@ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra") +@@ -923,7 +941,7 @@ set (CMAKE_VISIBILITY_INLINES_HIDDEN ON) # set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra") @@ -44,7 +44,7 @@ if (NOT APPLE) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pragmas") -@@ -1169,7 +1187,7 @@ add_executable (wsprsim ${wsprsim_CSRCS}) +@@ -1169,7 +1187,7 @@ add_executable (encode77 lib/77bit/encode77.f90) target_link_libraries (encode77 wsjt_fort wsjt_cxx) add_executable (wsprsim ${wsprsim_CSRCS}) @@ -53,7 +53,7 @@ add_executable (jt4code lib/jt4code.f90) target_link_libraries (jt4code wsjt_fort wsjt_cxx) -@@ -1211,6 +1229,12 @@ endif(WSJT_BUILD_UTILS) +@@ -1211,6 +1229,12 @@ target_link_libraries (ldpcsim240_74 wsjt_fort wsjt_cx endif(WSJT_BUILD_UTILS) @@ -66,7 +66,19 @@ add_executable (fmtave lib/fmtave.f90) add_executable (fcal lib/fcal.f90) -@@ -1601,12 +1625,12 @@ install (PROGRAMS +@@ -1410,6 +1434,11 @@ if (${OPENMP_FOUND} OR APPLE) + else (${OPENMP_FOUND} OR APPLE) + target_link_libraries (jt9 wsjt_fort wsjt_cxx fort_qt) + endif (${OPENMP_FOUND} OR APPLE) ++if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") ++ set_target_properties (jt9 PROPERTIES ++ LINK_FLAGS -Wl,-zexecstack ++ ) ++endif () + + if (WIN32) + # build map65 +@@ -1601,12 +1630,12 @@ install (PROGRAMS RENAME rigctld-wsjtx${CMAKE_EXECUTABLE_SUFFIX} ) |