Skip to content
Snippets Groups Projects
  • Victor Zhang's avatar
    Add noexecstack flag for gcc/clang C and CPP in Meson · 7b856e30
    Victor Zhang authored
    The `-Wl,-z,noexecstack` and `-Wa,--noexecstack` flags are already set for CMake, but not for Meson.
    This brings the flags to the Meson build as well. Note that this maintains the discrepancy in behavior
    between CMake and Meson when it comes to enabling ASM: on CMake, the ZSTD_HAS_NOEXECSTACK variable
    is set and these flags added for GCC/Clang and MinGW. Then later, the ZSTD_HAS_NOEXECSTACK variable
    is checked (along with some other conditions) to enable or disable ASM. However on Meson, this logic
    is restricted to simply checking for GCC/Clang. This patch maintains this behavior; noexecstack is
    dependent on GCC/Clang only.
    7b856e30
meson.build 5.36 KiB