diff options
author | Unsung Lee <unsung.lee@samsung.com> | 2023-11-25 21:14:47 +0900 |
---|---|---|
committer | Unsung Lee <unsung.lee@samsung.com> | 2023-11-28 11:24:23 +0900 |
commit | 4105c482a9099a782b8274c1cfa361aec57d0c2a (patch) | |
tree | 9e6e4ea0ed9e004ebd63d12e9854343053bb1e01 | |
parent | 2f75272cf9fddab613a4c5b6deb8651c43cb8133 (diff) | |
download | cryptsetup-accepted/tizen_unified.tar.gz cryptsetup-accepted/tizen_unified.tar.bz2 cryptsetup-accepted/tizen_unified.zip |
Makefile: Add security compiling option (RELRO, SC, and FORTIFY)HEADtizen_9.0_m2_releaseaccepted/tizen/unified/riscv/20231211.234141accepted/tizen/unified/dev/20240620.010630accepted/tizen/unified/20231128.175125accepted/tizen/9.0/unified/20241030.232657tizen_9.0tizenaccepted/tizen_unified_riscvaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_9.0_unified
Add security compiling option in Makefile.am to support
RELRO, SC, and FORTIFY.
Change-Id: I5d6c052b897cc392d4c2a1f62a5ac60952c2927e
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
-rw-r--r-- | Makefile.am | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 16c0a4d..edbcab3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,10 +12,13 @@ AM_CPPFLAGS = \ -DPREFIX=\""$(prefix)"\" \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ -DVERSION=\""$(VERSION)"\" \ - -DEXTERNAL_LUKS2_TOKENS_PATH=\"${EXTERNAL_LUKS2_TOKENS_PATH}\" -AM_CFLAGS = -Wall -fPIE + -DEXTERNAL_LUKS2_TOKENS_PATH=\"${EXTERNAL_LUKS2_TOKENS_PATH}\" \ + -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -Wl,-z,relro +AM_CFLAGS = -Wall -fPIE \ + -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -Wl,-z,relro AM_CXXFLAGS = -Wall -AM_LDFLAGS = -pie +AM_LDFLAGS = -pie \ + -Wl,-z,relro if ENABLE_FUZZ_TARGETS AM_CFLAGS += -fsanitize=fuzzer-no-link |