packagegroup-core-standalone-sdk-target: add libssp
cover packagegroup-core-standalone-sdk-target: add libssp
Backport this to morty since if you want runtime support for stack-smashing protection when building with gcc you need this library.
The following changes since commit ddf907ca95a19f54785079b4396935273b3747f6:
Revert "file: update SRCREV for 5.28 to fix fetch fail on missing commit" (2017-03-21 22:17:57 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/libssp-sdk-morty
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/libssp-sdk-morty
Paul Eggleton (1):
packagegroup-core-standalone-sdk-target: add libssp
.../packagegroups/packagegroup-core-standalone-sdk-target.bb | 5 +++++ 1 file changed, 5 insertions(+)
Signature · 1 line
2.9.3
PATCH 1/1 packagegroup-core-standalone-sdk-target: add libssp
If you want to be able to use -fstack-protector then you need the runtime support - you can either write this yourself or use libssp supplied with GCC. If you're using GCC then it seems likely that you'd just be using libssp, so include in the SDK by default; however use RRECOMMENDS just in case it's been disabled or you aren't using GCC.
(From OE-Core rev: 6c990655e35bb3a14d59555662ec5802c9980028)
--- .../packagegroups/packagegroup-core-standalone-sdk-target.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb +5 -0
@@ -12,3 +12,8 @@ RDEPENDS_${PN} = "\ libstdc++-dev \ ${LIBC_DEPENDENCIES} \ " + +RRECOMMENDS_${PN} = "\ + libssp \ + libssp-dev \ + "
Signature · 1 line
2.9.3
Quoted 11 lines · Paul Eggleton
If you want to be able to use -fstack-protector then you need the runtime support - you can either write this yourself or use libssp supplied with GCC. If you're using GCC then it seems likely that you'd just be using libssp, so include in the SDK by default; however use RRECOMMENDS just in case it's been disabled or you aren't using GCC.
(From OE-Core rev:
6c990655e35bb3a14d59555662ec5802c9980028)Signed-off-by Paul Eggleton <[email protected]>Signed-off-by Ross Burton <[email protected]>Signed-off-by Richard Purdie <[email protected]>
great. will pull in. thanks,
Armin
Quoted 17 lines
--- .../packagegroups/packagegroup-core-standalone-sdk-target.bb | 5 +++++ 1 file changed, 5 insertions(+)meta/recipes-core/packagegroups/packagegroup-core-standalone-sdk-target.bb +5
-0@@ -12,3 +12,8 @@ RDEPENDS_${PN} = "\ libstdc++-dev \ ${LIBC_DEPENDENCIES} \ " + +RRECOMMENDS_${PN} = "\ + libssp \ + libssp-dev \ + "