From 26797c39538743cfd44d2adf3c57707a94adcf2e Mon Sep 17 00:00:00 2001 From: "Alan M Varghese (NyxTrail)" Date: Fri, 1 Mar 2024 15:19:09 +0000 Subject: [PATCH] Enabling hardening and other best practices --- debian/rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 9b6e813..907af1a 100755 --- a/debian/rules +++ b/debian/rules @@ -3,13 +3,16 @@ export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 +export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O2 +export DEB_BUILD_HARDENING_FORTIFY = 1 %: dh $@ override_dh_auto_build: dh_auto_build -- PREFIX=/usr all +# Ignore makeshlibs. Our included binary is a custom copy of wlroots +# that is installed into a private directory (/usr/lib/hyprland/). override_dh_makeshlibs: : override_dh_auto_install: