equal
deleted
inserted
replaced
17 else() |
17 else() |
18 message(FATAL_ERROR "Could NOT find Freepascal") |
18 message(FATAL_ERROR "Could NOT find Freepascal") |
19 endif() |
19 endif() |
20 |
20 |
21 # Check for noexecstack flag support |
21 # Check for noexecstack flag support |
|
22 message(STATUS "Checking whether linker needs explicit noexecstack") |
22 set(NOEXECSTACK_FLAGS "-k-z" "-knoexecstack") |
23 set(NOEXECSTACK_FLAGS "-k-z" "-knoexecstack") |
23 file(WRITE ${EXECUTABLE_OUTPUT_PATH}/checkstack.pas "begin end.") |
24 file(WRITE ${EXECUTABLE_OUTPUT_PATH}/checkstack.pas "begin end.") |
24 |
25 |
25 execute_process(COMMAND ${FPC_EXECUTABLE} ${NOEXECSTACK_FLAGS} checkstack.pas |
26 execute_process(COMMAND ${FPC_EXECUTABLE} ${NOEXECSTACK_FLAGS} checkstack.pas |
26 WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH} |
27 WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH} |