diff options
-rw-r--r-- | meta-microblaze/recipes-core/libxcrypt/files/use-older-symver.patch | 15 | ||||
-rw-r--r-- | meta-microblaze/recipes-core/libxcrypt/libxcrypt_%.bbappend | 4 |
2 files changed, 19 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-core/libxcrypt/files/use-older-symver.patch b/meta-microblaze/recipes-core/libxcrypt/files/use-older-symver.patch new file mode 100644 index 00000000..4e6d5ecf --- /dev/null +++ b/meta-microblaze/recipes-core/libxcrypt/files/use-older-symver.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Avoid an issue on microblaze where the symver attribute is not available. | ||
2 | |||
3 | diff --git a/lib/crypt-port.h b/lib/crypt-port.h | ||
4 | index 3fa5222..80c3d91 100644 | ||
5 | --- a/lib/crypt-port.h | ||
6 | +++ b/lib/crypt-port.h | ||
7 | @@ -208,7 +208,7 @@ extern size_t strcpy_or_abort (void *dst, size_t d_size, const void *src); | ||
8 | |||
9 | /* Starting with GCC 10, we can use the symver attribute, which is also | ||
10 | needed at the point we decide to enable link-time optimization. */ | ||
11 | -# if __GNUC__ >= 10 | ||
12 | +# if __GNUC__ >= 10 && ! defined (__MICROBLAZE__) | ||
13 | |||
14 | /* Set the symbol version for EXTNAME, which uses INTNAME as its | ||
15 | implementation. */ | ||
diff --git a/meta-microblaze/recipes-core/libxcrypt/libxcrypt_%.bbappend b/meta-microblaze/recipes-core/libxcrypt/libxcrypt_%.bbappend new file mode 100644 index 00000000..3743e905 --- /dev/null +++ b/meta-microblaze/recipes-core/libxcrypt/libxcrypt_%.bbappend | |||
@@ -0,0 +1,4 @@ | |||
1 | FILESEXTRAPATHS:append:microblaze := ":${THISDIR}/files" | ||
2 | SRC_URI:append:microblaze = " \ | ||
3 | file://use-older-symver.patch \ | ||
4 | " | ||