Enabling hardening and other best practices

This commit is contained in:
Alan M Varghese (NyxTrail) 2024-03-01 15:19:09 +00:00
parent c2bef2309a
commit 26797c3953
1 changed files with 4 additions and 1 deletions

5
debian/rules vendored
View File

@ -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: