• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libsecret/0001-libsecret.pc-add-Libs.private-field-for-libgcrypt.patch
Thomas PetazzoniThomas Petazzoni committed 4a26d2190b028 Dec 2015
Raw file
Source viewDiff to previous
 
1
From 754897490d9478025d174c2b1c1849305f728324 Mon Sep 17 00:00:00 2001
2
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3
Date: Mon, 28 Dec 2015 12:13:07 +0100
4
Subject: [PATCH] libsecret.pc: add Libs.private field for libgcrypt
5
​
6
When libgcrypt is available, libsecret links with it. When dynamic
7
linking is used, there is no problem: libsecret.so has a NEEDED
8
pointing to libgcrypt, so linking an application with -lsecret works
9
fine. However, when doing static linking, you must specify the entire
10
chain of libraries, otherwise you get unresolved symbols errors, such
11
as:
12
​
13
host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libsecret-1.a(libsecret_1_la-secret-session.o): In function `request_open_session_aes':
14
build/libsecret-0.18.3/libsecret/secret-session.c:99: undefined reference to `gcry_mpi_release'
15
build/libsecret-0.18.3/libsecret/secret-session.c:101: undefined reference to `gcry_mpi_aprint'
16
build/libsecret-0.18.3/libsecret/secret-session.c:107: undefined reference to `gcry_free'
17
​
18
In order to solve this, we simply need to indicate in the Libs.private
19
field of the .pc file that we depend on libgcrypt.
20
​
21
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
22
---
23
 libsecret/libsecret.pc.in | 1 +
24
 1 file changed, 1 insertion(+)
25
​
26
diff --git a/libsecret/libsecret.pc.in b/libsecret/libsecret.pc.in
27
index 0c342ef..d99cf44 100644
28
--- a/libsecret/libsecret.pc.in
29
+++ b/libsecret/libsecret.pc.in
30
@@ -11,4 +11,5 @@ Description: GObject bindings for Secret Service API
31
 Version: @VERSION@
32
 Requires: glib-2.0 gobject-2.0 gio-2.0
33
 Libs: -L${libdir} -lsecret-@SECRET_MAJOR@
34
+Libs.private: @LIBGCRYPT_LIBS@
35
 Cflags: -I${includedir}/libsecret-@SECRET_MAJOR@
36
-- 
37
2.6.4
38
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.