Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
# We need clang (LLVM) to link the Rust static library and the C++ code with LTO enabled
# build-id SHA1 prevents an issue with the debug symbols ("export: `-Wl,--build-id=sha1': not a valid identifier")
-
+# disably fortify as it is handled by package build infra
override_dh_auto_configure:
LDFLAGS="-latomic -fuse-ld=lld -Wl,--build-id=sha1" \
CC=clang \
-Db_lto=true \
-Db_lto_mode=thin \
-Db_pie=true \
+ -Dhardening-fortify-source=disabled \
-Dunit-tests=true \
-Ddns-over-tls=enabled \
-Ddnstap=enabled \
# We need clang (LLVM) to link the Rust static library and the C++ code with LTO enabled
# build-id SHA1 prevents an issue with the debug symbols ("export: `-Wl,--build-id=sha1': not a valid identifier")
-
+# disably fortify as it is handled by package build infra
override_dh_auto_configure:
LDFLAGS="-latomic -fuse-ld=lld -Wl,--build-id=sha1" \
CC=clang \
-Db_lto=true \
-Db_lto_mode=thin \
-Db_pie=true \
+ -Dhardening-fortify-source=disabled \
-Dunit-tests=true \
-Ddns-over-tls=enabled \
-Ddnstap=enabled \
# Note that the RPM meson macro "helpfully" sets
# --auto-features=enabled so our auto-detection is broken
+# disably fortify as it is handled by package build infra
%meson \
--sysconfdir=%{_sysconfdir}/%{name} \
-Dunit-tests=true \
-Db_lto=true \
-Db_lto_mode=thin \
-Db_pie=true \
+ -Dhardening-fortify-source=disabled \
-Ddns-over-tls=enabled \
-Ddnstap=enabled \
-Dlibcap=enabled \