mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-02-08 12:26:50 +00:00
Makefile: add -fno-semantic-interposition
Add -fno-semantic-interposition to CFLAGS. This will restore the DSO infrastructures protections to insure internal callers of exported symbols call into libselinux and not something laoding first in the library list. Clang has this enabled by default. Signed-off-by: William Roberts <william.c.roberts@intel.com>
This commit is contained in:
parent
4246bb550d
commit
7f9edee769
@ -65,7 +65,7 @@ EXTRA_CFLAGS = -fipa-pure-const -Wlogical-op -Wpacked-bitfield-compat -Wsync-nan
|
||||
-Wcoverage-mismatch -Wcpp -Wformat-contains-nul -Wnormalized=nfc -Wsuggest-attribute=const \
|
||||
-Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wtrampolines -Wjump-misses-init \
|
||||
-Wno-suggest-attribute=pure -Wno-suggest-attribute=const -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 \
|
||||
-Wstrict-overflow=5
|
||||
-Wstrict-overflow=5 -fno-semantic-interposition
|
||||
else
|
||||
EXTRA_CFLAGS = -Wunused-command-line-argument
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user