mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-17 01:56:53 +00:00
libselinux: drop obsolete optimization flag
The optimization flag -funit-at-a-time is enabled by default in GCC[1] and not supported by Clang: clang: error: optimization flag '-funit-at-a-time' is not supported [-Werror,-Wignored-optimization-argument] [1]: https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Acked-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
parent
d8eb8b309f
commit
f9df9487ad
@ -86,7 +86,7 @@ CFLAGS ?= -O -Wall -W -Wundef -Wformat-y2k -Wformat-security -Winit-self -Wmissi
|
||||
-Wno-missing-field-initializers -Wno-sign-compare \
|
||||
-Wno-format-nonliteral -Wframe-larger-than=$(MAX_STACK_SIZE) \
|
||||
-fstack-protector-all --param=ssp-buffer-size=4 -fexceptions \
|
||||
-fasynchronous-unwind-tables -fdiagnostics-show-option -funit-at-a-time \
|
||||
-fasynchronous-unwind-tables -fdiagnostics-show-option \
|
||||
-Werror -Wno-aggregate-return -Wno-redundant-decls \
|
||||
$(EXTRA_CFLAGS)
|
||||
|
||||
|
@ -32,7 +32,7 @@ CFLAGS ?= -O -Wall -W -Wundef -Wformat-y2k -Wformat-security -Winit-self -Wmissi
|
||||
-Wno-missing-field-initializers -Wno-sign-compare \
|
||||
-Wno-format-nonliteral -Wframe-larger-than=$(MAX_STACK_SIZE) -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 \
|
||||
-fstack-protector-all --param=ssp-buffer-size=4 -fexceptions \
|
||||
-fasynchronous-unwind-tables -fdiagnostics-show-option -funit-at-a-time \
|
||||
-fasynchronous-unwind-tables -fdiagnostics-show-option \
|
||||
-Werror -Wno-aggregate-return -Wno-redundant-decls -Wstrict-overflow=5 \
|
||||
$(EXTRA_CFLAGS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user