* [Buildroot] [PATCH] libglib2: fix static linking with libgio
@ 2016-10-18 18:03 Rahul Bedarkar
2016-10-20 20:04 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Rahul Bedarkar @ 2016-10-18 18:03 UTC (permalink / raw)
To: buildroot
When statically linking with libgio, application needs to link with all
internal libraries that libgio uses. This commit adds patch which
includes libmount as Libs.private.
Fixes:
http://autobuild.buildroot.net/results/fdf/fdf26abbed0014606a7788ce5d60828a0e871186
http://autobuild.buildroot.net/results/1d6/1d69b8ea34cf57255be54de0c87fc83590fb1337
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
---
...o-2.0.pc-include-libmount-in-Libs.private.patch | 32 ++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 package/libglib2/0003-gio-2.0.pc-include-libmount-in-Libs.private.patch
diff --git a/package/libglib2/0003-gio-2.0.pc-include-libmount-in-Libs.private.patch b/package/libglib2/0003-gio-2.0.pc-include-libmount-in-Libs.private.patch
new file mode 100644
index 0000000..364e179
--- /dev/null
+++ b/package/libglib2/0003-gio-2.0.pc-include-libmount-in-Libs.private.patch
@@ -0,0 +1,32 @@
+From ee32416dec8462ee27c3c254100cf980b0889ce0 Mon Sep 17 00:00:00 2001
+From: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
+Date: Tue, 18 Oct 2016 23:04:50 +0530
+Subject: [PATCH] gio-2.0.pc: include libmount in Libs.private
+
+This helps with static linking. When application statically links with
+libgio, it needs to link against libmount explicitly. When it is
+mentioned in Libs.private, build system can figure out with which extra
+libs to link against with help of pkg-config.
+
+This build failure is detected by Buildroot autobuilder:
+http://autobuild.buildroot.net/results/fdf/fdf26abbed0014606a7788ce5d60828a0e871186
+
+Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
+---
+ gio-2.0.pc.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gio-2.0.pc.in b/gio-2.0.pc.in
+index 899af0c..7574eb7 100644
+--- a/gio-2.0.pc.in
++++ b/gio-2.0.pc.in
+@@ -14,5 +14,5 @@ Version: @VERSION@
+ Requires: glib-2.0 gobject-2.0
+ Requires.private: gmodule-no-export-2.0
+ Libs: -L${libdir} -lgio-2.0
+-Libs.private: @ZLIB_LIBS@ @NETWORK_LIBS@ @SELINUX_LIBS@ @COCOA_LIBS@ @CARBON_LIBS@
++Libs.private: @ZLIB_LIBS@ @NETWORK_LIBS@ @SELINUX_LIBS@ @COCOA_LIBS@ @CARBON_LIBS@ @LIBMOUNT_LIBS@
+ Cflags:
+--
+2.6.2
+
--
2.6.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] libglib2: fix static linking with libgio
2016-10-18 18:03 [Buildroot] [PATCH] libglib2: fix static linking with libgio Rahul Bedarkar
@ 2016-10-20 20:04 ` Thomas Petazzoni
2016-10-21 13:08 ` Rahul Bedarkar
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2016-10-20 20:04 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 18 Oct 2016 23:33:07 +0530, Rahul Bedarkar wrote:
> When statically linking with libgio, application needs to link with all
> internal libraries that libgio uses. This commit adds patch which
> includes libmount as Libs.private.
>
> Fixes:
> http://autobuild.buildroot.net/results/fdf/fdf26abbed0014606a7788ce5d60828a0e871186
> http://autobuild.buildroot.net/results/1d6/1d69b8ea34cf57255be54de0c87fc83590fb1337
>
> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
> Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
> ---
> ...o-2.0.pc-include-libmount-in-Libs.private.patch | 32 ++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
> create mode 100644 package/libglib2/0003-gio-2.0.pc-include-libmount-in-Libs.private.patch
Applied to master, thanks a lot! Could you please submit the patch
upstream?
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] libglib2: fix static linking with libgio
2016-10-20 20:04 ` Thomas Petazzoni
@ 2016-10-21 13:08 ` Rahul Bedarkar
0 siblings, 0 replies; 3+ messages in thread
From: Rahul Bedarkar @ 2016-10-21 13:08 UTC (permalink / raw)
To: buildroot
Hi,
On Friday 21 October 2016 01:34 AM, Thomas Petazzoni wrote:
> Hello,
>
> On Tue, 18 Oct 2016 23:33:07 +0530, Rahul Bedarkar wrote:
>> When statically linking with libgio, application needs to link with all
>> internal libraries that libgio uses. This commit adds patch which
>> includes libmount as Libs.private.
>>
>> Fixes:
>> http://autobuild.buildroot.net/results/fdf/fdf26abbed0014606a7788ce5d60828a0e871186
>> http://autobuild.buildroot.net/results/1d6/1d69b8ea34cf57255be54de0c87fc83590fb1337
>>
>> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
>> Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
>> ---
>> ...o-2.0.pc-include-libmount-in-Libs.private.patch | 32 ++++++++++++++++++++++
>> 1 file changed, 32 insertions(+)
>> create mode 100644 package/libglib2/0003-gio-2.0.pc-include-libmount-in-Libs.private.patch
>
> Applied to master, thanks a lot! Could you please submit the patch
> upstream?
Yes, I will submit patch upstream.
Thanks,
Rahul
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-21 13:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 18:03 [Buildroot] [PATCH] libglib2: fix static linking with libgio Rahul Bedarkar
2016-10-20 20:04 ` Thomas Petazzoni
2016-10-21 13:08 ` Rahul Bedarkar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox