From: Khem Raj Date: Wed, 24 Aug 2022 06:34:42 +0000 (-0700) Subject: gcr: Define _GNU_SOURCE X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d117e5d17c491e1d26aefb4b919410b07fd5347;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git gcr: Define _GNU_SOURCE This ensures that definitions of functions e.g. getpass() are correctly sourced from system headers, since it depends on feature test macros Signed-off-by: Khem Raj Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-gnome/gcr/gcr_3.40.0.bb b/meta/recipes-gnome/gcr/gcr_3.40.0.bb index 0c2af42f062..917be5938ba 100644 --- a/meta/recipes-gnome/gcr/gcr_3.40.0.bb +++ b/meta/recipes-gnome/gcr/gcr_3.40.0.bb @@ -13,6 +13,8 @@ DEPENDS = "p11-kit glib-2.0 libgcrypt gnupg-native \ CACHED_CONFIGUREVARS += "ac_cv_path_GPG='gpg2'" +CFLAGS += "-D_GNU_SOURCE" + GNOMEBASEBUILDCLASS = "meson" GTKDOC_MESON_OPTION = "gtk_doc" inherit gnomebase gtk-icon-cache gtk-doc features_check upstream-version-is-even vala gobject-introspection gettext mime mime-xdg