build-sys: Enable optional hardening flags
With the configure option --enable-harden-flags the CFLAGS and LDFLAGS are manipulated to provide some hardening protection to the binaries. psmisc uses these flags on by default with no troubles, however it doesn't have a library in it either. References: https://wiki.debian.org/Hardening
This commit is contained in:
@@ -7,7 +7,10 @@ AM_CPPFLAGS = \
|
||||
-include $(top_builddir)/config.h \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/include \
|
||||
-DLOCALEDIR=\"$(localedir)\"
|
||||
-DLOCALEDIR=\"$(localedir)\" \
|
||||
@HARDEN_CFLAGS@
|
||||
|
||||
AM_LDFLAGS = @HARDEN_LDFLAGS@
|
||||
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
|
||||
|
Reference in New Issue
Block a user