diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2020-10-01 15:27:27 +0200 |
---|---|---|
committer | Peter Kjellerstedt <pkj@axis.com> | 2020-10-16 20:27:41 +0200 |
commit | 6e8e969590a22a729db1ff342de57f2fd5d02d43 (patch) | |
tree | f58f3a17e11cfa8b4a0cb5693f656276da291959 /recipes-support/gnupg/gnupg_1.4.7.bb | |
parent | b86fe7c9e830dce1e4ac494a89114a24621c2e3f (diff) | |
download | meta-gplv2-6e8e969590a22a729db1ff342de57f2fd5d02d43.tar.gz |
gnupg: Build with "-fcommon"yocto-3.2.4yocto-3.2.3yocto-3.2.2yocto-3.2.1yocto-3.2gatesgarth-24.0.4gatesgarth-24.0.3gatesgarth-24.0.2gatesgarth-24.0.1gatesgarth-24.0.03.3_M23.3_M1gatesgarth
The patch from f9761c0 ("gnupg: Make it build with GCC 10 (which uses
-fno-common by default)") doesn't work in all cases, such as when
building gnupg-native. Instead of trying to patch around it, re-enable
the -fcommon flag explicitly to keep the build the same as it was before
GCC 10 changed the default.
This reverts commit f9761c01495cd52ce88e33fbc8824f882cf80288.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Diffstat (limited to 'recipes-support/gnupg/gnupg_1.4.7.bb')
-rw-r--r-- | recipes-support/gnupg/gnupg_1.4.7.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes-support/gnupg/gnupg_1.4.7.bb b/recipes-support/gnupg/gnupg_1.4.7.bb index 6258809..c7da052 100644 --- a/recipes-support/gnupg/gnupg_1.4.7.bb +++ b/recipes-support/gnupg/gnupg_1.4.7.bb | |||
@@ -20,7 +20,6 @@ SRC_URI = "${GNUPG_MIRROR}/gnupg/gnupg-${PV}.tar.bz2 \ | |||
20 | file://CVE-2013-4242.patch \ | 20 | file://CVE-2013-4242.patch \ |
21 | file://fix-ustar-check-issue.patch \ | 21 | file://fix-ustar-check-issue.patch \ |
22 | file://0001-Make-it-build-with-gettext-0.20.patch \ | 22 | file://0001-Make-it-build-with-gettext-0.20.patch \ |
23 | file://0001-Make-it-build-with-GCC-10-which-uses-fno-common-by-d.patch \ | ||
24 | " | 23 | " |
25 | 24 | ||
26 | SRC_URI[md5sum] = "b06a141cca5cd1a55bbdd25ab833303c" | 25 | SRC_URI[md5sum] = "b06a141cca5cd1a55bbdd25ab833303c" |
@@ -89,6 +88,10 @@ EXTRA_OECONF = "--disable-ldap \ | |||
89 | BUILD_CFLAGS += "-fgnu89-inline" | 88 | BUILD_CFLAGS += "-fgnu89-inline" |
90 | CFLAGS += "-fgnu89-inline" | 89 | CFLAGS += "-fgnu89-inline" |
91 | 90 | ||
91 | # Force -fcommon to avoid issues with GCC 10 (which defaults to -fno-common) | ||
92 | BUILD_CFLAGS += "-fcommon" | ||
93 | CFLAGS += "-fcommon" | ||
94 | |||
92 | do_install () { | 95 | do_install () { |
93 | autotools_do_install | 96 | autotools_do_install |
94 | install -d ${D}${docdir}/${BPN} | 97 | install -d ${D}${docdir}/${BPN} |