Skip to contentSkip to conversation

lxc: mark as not available in BR2_STATIC_LIBS configs

PATCH New Thomas Petazzoni 2 participants 2 messages May 12, 2015 – May 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lxc: mark as not available in BR2_STATIC_LIBS configs

Even though lxc uses the autotools, it does not use libtool to build its libraries, and does it manually. It forces building a shared library. So let's comply with this decision, and mark lxc as not available in BR2_STATIC_LIBS configurations.

Fixes:

http://autobuild.buildroot.org/results/588/588dc28315a9114374f148bbc64c4ec3d7b4e295/

---
 package/lxc/Config.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
package/lxc/Config.in +5 -2
index 10a668d..ffd9b4a 100644
@@ -3,6 +3,8 @@ config BR2_PACKAGE_LXC
 	select BR2_PACKAGE_LIBCAP
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_MMU # fork()
+	# build system forcefully builds a shared library
+	depends on !BR2_STATIC_LIBS
 	# the toolchain doesn't support setns syscall
 	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
 	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405
@@ -14,9 +16,10 @@ config BR2_PACKAGE_LXC
 
 	  https://linuxcontainers.org/
 
-comment "lxc needs a toolchain w/ threads, headers >= 3.0"
+comment "lxc needs a toolchain w/ threads, headers >= 3.0, dynamic library"
 	depends on BR2_USE_MMU
 	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
 	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405
 	depends on !BR2_TOOLCHAIN_HAS_THREADS \
-		|| !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
+		|| !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 \
+		|| BR2_STATIC_LIBS
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 lxc: mark as not available in BR2_STATIC_LIBS configs

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Even though lxc uses the autotools, it does not use libtool to build its libraries, and does it manually. It forces building a shared library. So let's comply with this decision, and mark lxc as not available in BR2_STATIC_LIBS configurations.

Quoted 5 lines

Fixes:

http://autobuild.buildroot.org/results/588/588dc28315a9114374f148bbc64c4ec3d7b4e295/

Committed, thanks.

Quoted 37 lines
---
 package/lxc/Config.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
package/lxc/Config.in +5 -2
index 10a668d..ffd9b4a 100644
@@ -3,6 +3,8 @@ config BR2_PACKAGE_LXC
 	select BR2_PACKAGE_LIBCAP
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_MMU # fork()
+	# build system forcefully builds a shared library
+	depends on !BR2_STATIC_LIBS
 	# the toolchain doesn't support setns syscall
 	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
 	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405
@@ -14,9 +16,10 @@ config BR2_PACKAGE_LXC
 
 	  https://linuxcontainers.org/
 
-comment "lxc needs a toolchain w/ threads, headers >= 3.0"
+comment "lxc needs a toolchain w/ threads, headers >= 3.0, dynamic library"
 	depends on BR2_USE_MMU
 	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
 	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405
 	depends on !BR2_TOOLCHAIN_HAS_THREADS \
-		|| !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
+		|| !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 \
+		|| BR2_STATIC_LIBS
Signature · 6 lines
2.1.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Bye, Peter Korsgaard