klibc-static-utils: really fix build for x86 with security flags enabled

There were some shared binaries built together with the static ones and this
was leading to the infamous:

 i586-oe-linux-musl-ld.bfd: discarded output section: `.got.plt'

Fix this by purging the Kbuild files.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Andrea Adami
2018-10-10 01:08:10 +02:00
committed by Khem Raj
parent 09ae486b7c
commit aa19346e44
2 changed files with 215 additions and 0 deletions
@@ -11,6 +11,8 @@ KLIBC_UTILS_PKGNAME = "klibc-static-utils"
require klibc-utils.inc
require klibc.inc
SRC_URI += "file://0001-klibc-static-utils-do-not-build-shared-binaries.patch"
# avoid textrel if linking with -pie
SECURITY_CFLAGS = ""
SECURITY_LDFLAGS = ""