package/libaio: disable for static only build
PATCH 1/1 package/libaio: disable for static only build
The build system try to build a shared library unconditionally.
-static [...] -fPIC [...] -Wl,-soname=libaio.so.1
Fixes:
http://autobuild.buildroot.net/results/8c8/8c86402bd14a0af1b82e6e07c06531a856dd37c6
Signed-off-by Romain Naour <[email protected]>
--- package/blktrace/Config.in | 6 ++++-- package/gadgetfs-test/Config.in | 1 + package/libaio/Config.in | 5 +++++ package/xen/Config.in | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-)
package/blktrace/Config.in +4 -2
@@ -3,6 +3,7 @@ config BR2_PACKAGE_BLKTRACE # Uses posix_spawn() depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS + depends on !BR2_STATIC_LIBS # libaio select BR2_PACKAGE_LIBAIO help blktrace is a block layer IO tracing mechanism which provides
@@ -11,6 +12,7 @@ config BR2_PACKAGE_BLKTRACE http://git.kernel.dk/?p=blktrace.git;a=summary -comment "blktrace needs a glibc or musl toolchain" +comment "blktrace needs a glibc or musl toolchain w/ dynamic library" depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS - depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL) + depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL) || \ + BR2_STATIC_LIBS
package/gadgetfs-test/Config.in +1 -0
@@ -9,6 +9,7 @@ if BR2_PACKAGE_GADGETFS_TEST config BR2_PACKAGE_GADGETFS_TEST_USE_AIO bool "use asynchronous i/o" depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS + depends on !BR2_STATIC_LIBS # libaio select BR2_PACKAGE_LIBAIO help Select this to have gadgetfs-test do asynchronous I/O using
package/libaio/Config.in +5 -0
@@ -7,5 +7,10 @@ config BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS config BR2_PACKAGE_LIBAIO bool "libaio" depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS + depends on !BR2_STATIC_LIBS help Library for doing asynchronous I/O + +comment "libaio needs a toolchain w/ dynamic library" + depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS + depends on BR2_STATIC_LIBS
package/xen/Config.in +1 -1
@@ -19,7 +19,7 @@ config BR2_PACKAGE_XEN_HYPERVISOR config BR2_PACKAGE_XEN_TOOLS bool "Xen tools" - depends on !BR2_STATIC_LIBS # dtc (libfdt) + depends on !BR2_STATIC_LIBS # dtc (libfdt), libaio depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2 depends on BR2_USE_WCHAR # libglib2, util-linux
Signature · 1 line
2.5.5