security_flags.inc has exception packages that are not compiled with -PIE security flag due to compilation issue. Instead they should be tried to compile with -fpic flag that provides similar protection from security side. See https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/conf/distro/include/security_flags.inc
It should be clarified that -fpic provides similar protection only for executable binaries. For libraries it makes no difference, if I'm reading the gcc manual correctly.
I got the manual backwards - PIE is for executables, PIC is for libraries. Anyway, I added -fPIC to SECURITY_NO_PIE_CFLAGS, and nothing failed, so I guess it can be enabled like that. I don't really know the difference between these flags, and gcc manual doesn't explain it well: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html The patch is coming to mailing list shortly.
The patch is in master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=310d8602624b7c602049bb3b31c24f768974232d