Skip to content

Commit

Permalink
libostree: Link with libgpg-error for gpg_strerror_r API
Browse files Browse the repository at this point in the history
With f461c02 use of gpg_strerror_r
was added this symbol comes from libgpg-error however, therefore its
needed to add -lgpg-error to cmdline to resolve this symbol especially
with gold and lld linker. Fixes

aarch64-yoe-linux-ld.lld: error: undefined reference due to --no-allow-shlib-undefined: gpg_strerror_r
>>> referenced by ./.libs/libostree-1.so

(cherry picked from commit c3bd439)
  • Loading branch information
kraj authored and dbnicholson committed Nov 28, 2023
1 parent f9d4eae commit 4e1192b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ AC_ARG_WITH(gpgme,
[], [with_gpgme=yes])
AS_IF([test x$with_gpgme != xno], [
have_gpgme=yes
PKG_CHECK_MODULES([OT_DEP_GPGME], gpgme >= $LIBGPGME_DEPENDENCY, [], have_gpgme=no)
PKG_CHECK_MODULES([OT_DEP_GPG_ERROR], [gpg-error], [], have_gpgme=no)
PKG_CHECK_MODULES([OT_DEP_GPGME], [gpgme >= $LIBGPGME_DEPENDENCY gpg-error], [have_gpgme=yes], [have_gpgme=no])
]
)
AS_IF([test x$with_gpgme != xno && test x$have_gpgme != xyes], [
Expand Down

0 comments on commit 4e1192b

Please sign in to comment.