mirror of
https://git.yoctoproject.org/poky
synced 2026-06-18 22:53:49 +02:00
Characters like '-O2' or '-Ofast' will be replaced by '-O1' when compiling cipher. If we are cross compiling libgcrypt and sysroot contains such characters, we would get compile errors because the sysroot path has been modified. Fix this by adding whitespaces before and after the original matching pattern in the sed command. [YOCTO #5628] (From OE-Core rev: 84514834417e022660e7b3a540910d2d6fb12337) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
32 lines
1.1 KiB
PHP
32 lines
1.1 KiB
PHP
DESCRIPTION = "A general purpose cryptographic library based on the code from GnuPG"
|
|
HOMEPAGE = "http://directory.fsf.org/project/libgcrypt/"
|
|
BUGTRACKER = "https://bugs.g10code.com/gnupg/index"
|
|
SECTION = "libs"
|
|
|
|
# helper program gcryptrnd and getrandom are under GPL, rest LGPL
|
|
LICENSE = "GPLv2+ & LGPLv2.1+"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
|
|
file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff"
|
|
|
|
DEPENDS = "libgpg-error libcap"
|
|
|
|
SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz \
|
|
file://add-pkgconfig-support.patch \
|
|
file://libgcrypt-fix-building-error-with-O2-in-sysroot-path.patch"
|
|
|
|
inherit autotools binconfig pkgconfig
|
|
|
|
EXTRA_OECONF = "--disable-asm --with-capabilities"
|
|
|
|
# libgcrypt.pc is added locally and thus installed here
|
|
do_install_append() {
|
|
install -d ${D}/${libdir}/pkgconfig
|
|
install -m 0644 ${B}/src/libgcrypt.pc ${D}/${libdir}/pkgconfig/
|
|
}
|
|
|
|
FILES_${PN}-dev += "${bindir}/dumpsexp ${bindir}/hmac256"
|
|
|
|
ARM_INSTRUCTION_SET = "arm"
|
|
|
|
BBCLASSEXTEND = "native"
|