author | kpcyrd
<kpcyrd@archlinux.org> 2023-10-10 10:57:54 UTC |
committer | kpcyrd
<kpcyrd@archlinux.org> 2023-10-10 10:57:54 UTC |
parent | b4c9bf922aa744a0c09ff4c57776fc64c7720989 |
PKGBUILD | +5 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 40f6eca..843b06a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -17,6 +17,11 @@ sha512sums=('68d18574dea0563fa4f080c5d0d1cfe21a115bffdb17c6190f6741998f1e5db0739 b2sums=('3b8657b79828102cbfba71ea789acd3b7aec7faaa6317974d182b3cb4b5091d8efcf1f184278f71674624a0f1968450ab056e1d91f9faf2c35c67c6c6f4cb695') build() { + # this uses malloc_usable_size, which is incompatible with fortification level 3 + # https://github.com/warmcat/libwebsockets/pull/2977 + export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" + export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" + cmake -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=None \ -D DISABLE_WERROR=ON \