Colibri IMX6 Linux image V2.7 build with stack-protector

Hi
I have a Colibri IMX6 and build a sdk with the angstrom-lxde image.
To find an application bug I like to build my application with the compiler option -fstack-protector
The linking fails because the ssp_nonshared lib is missing.

${CC} -g -fstack-protector test_overflow.c 
/opt/angstrom-armv7at2hf/sysroots/x86_64-angstromsdk-linux/usr/libexec/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/6.2.1/real-ld: error: cannot find -lssp_nonshared
collect2: error: ld returned 1 exit status

What must be done than bitbake will genereate this library?
Thanks

Hi

You probably get what you want by adding the following, e.g. to local.conf or your custom image recipe:

TOOLCHAIN_TARGET_TASK_append = " libssp-dev"

Max

Thanks, it works