* [PATCH libtirpc v2] pkg-config: needs pthread as private library
@ 2014-11-23 17:43 Yann E. MORIN
2014-11-29 18:15 ` Yann E. MORIN
2014-12-13 14:40 ` Steve Dickson
0 siblings, 2 replies; 3+ messages in thread
From: Yann E. MORIN @ 2014-11-23 17:43 UTC (permalink / raw)
To: libtirpc-devel; +Cc: linux-nfs, Yann E. MORIN, Steve Dickson
libtirpc needs pthreads. This is automatically pulled in when linking
with the shared library, thanks to the DT_NEEDED ELF tags.
But for a static library, there is no such mechanism to identify
required libraries.
Thus, add -lpthread to the private libraries in the pkg-config file.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Steve Dickson <steved@redhat.com>
---
Changes v1 -> v2:
- posted publicly in appropriate locations (thanks Steve)
---
libtirpc.pc.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/libtirpc.pc.in b/libtirpc.pc.in
index ec4cf75..38034c5 100644
--- a/libtirpc.pc.in
+++ b/libtirpc.pc.in
@@ -8,4 +8,5 @@ Description: Transport Independent RPC Library
Requires:
Version: @PACKAGE_VERSION@
Libs: -L@libdir@ -ltirpc
+Libs.private: -lpthread
Cflags: -I@includedir@/tirpc
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH libtirpc v2] pkg-config: needs pthread as private library
2014-11-23 17:43 [PATCH libtirpc v2] pkg-config: needs pthread as private library Yann E. MORIN
@ 2014-11-29 18:15 ` Yann E. MORIN
2014-12-13 14:40 ` Steve Dickson
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2014-11-29 18:15 UTC (permalink / raw)
To: libtirpc-devel; +Cc: linux-nfs, Steve Dickson
Hello All,
On 2014-11-23 18:43 +0100, Yann E. MORIN spake thusly:
> libtirpc needs pthreads. This is automatically pulled in when linking
> with the shared library, thanks to the DT_NEEDED ELF tags.
>
> But for a static library, there is no such mechanism to identify
> required libraries.
>
> Thus, add -lpthread to the private libraries in the pkg-config file.
Ping?
Regards,
Yann E. MORIN.
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Steve Dickson <steved@redhat.com>
>
> ---
> Changes v1 -> v2:
> - posted publicly in appropriate locations (thanks Steve)
> ---
> libtirpc.pc.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libtirpc.pc.in b/libtirpc.pc.in
> index ec4cf75..38034c5 100644
> --- a/libtirpc.pc.in
> +++ b/libtirpc.pc.in
> @@ -8,4 +8,5 @@ Description: Transport Independent RPC Library
> Requires:
> Version: @PACKAGE_VERSION@
> Libs: -L@libdir@ -ltirpc
> +Libs.private: -lpthread
> Cflags: -I@includedir@/tirpc
> --
> 1.9.1
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH libtirpc v2] pkg-config: needs pthread as private library
2014-11-23 17:43 [PATCH libtirpc v2] pkg-config: needs pthread as private library Yann E. MORIN
2014-11-29 18:15 ` Yann E. MORIN
@ 2014-12-13 14:40 ` Steve Dickson
1 sibling, 0 replies; 3+ messages in thread
From: Steve Dickson @ 2014-12-13 14:40 UTC (permalink / raw)
To: Yann E. MORIN, libtirpc-devel; +Cc: linux-nfs
On 11/23/2014 12:43 PM, Yann E. MORIN wrote:
> libtirpc needs pthreads. This is automatically pulled in when linking
> with the shared library, thanks to the DT_NEEDED ELF tags.
>
> But for a static library, there is no such mechanism to identify
> required libraries.
>
> Thus, add -lpthread to the private libraries in the pkg-config file.
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Steve Dickson <steved@redhat.com>
Committed...
steved.
>
> ---
> Changes v1 -> v2:
> - posted publicly in appropriate locations (thanks Steve)
> ---
> libtirpc.pc.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libtirpc.pc.in b/libtirpc.pc.in
> index ec4cf75..38034c5 100644
> --- a/libtirpc.pc.in
> +++ b/libtirpc.pc.in
> @@ -8,4 +8,5 @@ Description: Transport Independent RPC Library
> Requires:
> Version: @PACKAGE_VERSION@
> Libs: -L@libdir@ -ltirpc
> +Libs.private: -lpthread
> Cflags: -I@includedir@/tirpc
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-13 14:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-23 17:43 [PATCH libtirpc v2] pkg-config: needs pthread as private library Yann E. MORIN
2014-11-29 18:15 ` Yann E. MORIN
2014-12-13 14:40 ` Steve Dickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox