forked from openkylin/platform_build
Merge "Enable -fstack-protector-strong for the host."
This commit is contained in:
commit
a4b3d20d28
|
@ -45,7 +45,7 @@ endif # BUILD_HOST_static
|
||||||
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -fPIC \
|
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -fPIC \
|
||||||
-no-canonical-prefixes \
|
-no-canonical-prefixes \
|
||||||
|
|
||||||
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector
|
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong
|
||||||
|
|
||||||
# Workaround differences in inttypes.h between host and target.
|
# Workaround differences in inttypes.h between host and target.
|
||||||
# See bug 12708004.
|
# See bug 12708004.
|
||||||
|
|
|
@ -44,7 +44,7 @@ endif # BUILD_HOST_static
|
||||||
HOST_GLOBAL_CFLAGS += -fPIC \
|
HOST_GLOBAL_CFLAGS += -fPIC \
|
||||||
-no-canonical-prefixes \
|
-no-canonical-prefixes \
|
||||||
|
|
||||||
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector
|
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong
|
||||||
|
|
||||||
# Workaround differences in inttypes.h between host and target.
|
# Workaround differences in inttypes.h between host and target.
|
||||||
# See bug 12708004.
|
# See bug 12708004.
|
||||||
|
|
Loading…
Reference in New Issue