From bb7da9658d070e05a26a3639b190c0d1df20371e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 16 May 2014 08:30:07 +0200 Subject: [PATCH] cross-profiles: enable -fstack-protector-strong for armv[67]hf profiles. --- common/cross-profiles/armv6hf.sh | 2 +- common/cross-profiles/armv7hf.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cross-profiles/armv6hf.sh b/common/cross-profiles/armv6hf.sh index 0931f65194d..e7400bf01d4 100644 --- a/common/cross-profiles/armv6hf.sh +++ b/common/cross-profiles/armv6hf.sh @@ -2,7 +2,7 @@ XBPS_TARGET_ARCH="armv6l" XBPS_CROSS_TRIPLET="arm-linux-gnueabihf" -XBPS_CFLAGS="-O2 -pipe" +XBPS_CFLAGS="-O2 -pipe -fstack-protector-strong" XBPS_CXXFLAGS="$XBPS_CFLAGS" XBPS_CROSS_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard" XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS" diff --git a/common/cross-profiles/armv7hf.sh b/common/cross-profiles/armv7hf.sh index 0bebb311638..c6b1519d501 100644 --- a/common/cross-profiles/armv7hf.sh +++ b/common/cross-profiles/armv7hf.sh @@ -2,7 +2,7 @@ XBPS_TARGET_ARCH="armv7l" XBPS_CROSS_TRIPLET="arm-linux-gnueabihf7" -XBPS_CFLAGS="-O2 -pipe" +XBPS_CFLAGS="-O2 -pipe -fstack-protector-strong" XBPS_CXXFLAGS="$XBPS_CFLAGS" XBPS_CROSS_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard" XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"