summaryrefslogtreecommitdiffstats
path: root/recipes-support/gnupg/gnupg_1.4.7.bb
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2020-10-01 15:27:27 +0200
committerPeter Kjellerstedt <pkj@axis.com>2020-10-16 20:27:41 +0200
commit6e8e969590a22a729db1ff342de57f2fd5d02d43 (patch)
treef58f3a17e11cfa8b4a0cb5693f656276da291959 /recipes-support/gnupg/gnupg_1.4.7.bb
parentb86fe7c9e830dce1e4ac494a89114a24621c2e3f (diff)
downloadmeta-gplv2-6e8e969590a22a729db1ff342de57f2fd5d02d43.tar.gz
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.bb5
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
26SRC_URI[md5sum] = "b06a141cca5cd1a55bbdd25ab833303c" 25SRC_URI[md5sum] = "b06a141cca5cd1a55bbdd25ab833303c"
@@ -89,6 +88,10 @@ EXTRA_OECONF = "--disable-ldap \
89BUILD_CFLAGS += "-fgnu89-inline" 88BUILD_CFLAGS += "-fgnu89-inline"
90CFLAGS += "-fgnu89-inline" 89CFLAGS += "-fgnu89-inline"
91 90
91# Force -fcommon to avoid issues with GCC 10 (which defaults to -fno-common)
92BUILD_CFLAGS += "-fcommon"
93CFLAGS += "-fcommon"
94
92do_install () { 95do_install () {
93 autotools_do_install 96 autotools_do_install
94 install -d ${D}${docdir}/${BPN} 97 install -d ${D}${docdir}/${BPN}