ruby: requires shared library
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 28 Aug 2014 22:17:37 +0000 (00:17 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 29 Aug 2014 07:15:42 +0000 (09:15 +0200)
No matter what you do, the Ruby build system wants to use shared
libraries for the encoding modules. Therefore, this commit disallows
the selection of Ruby in BR2_PREFER_STATIC_LIB situations.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ruby/Config.in

index 0de756ba9c38d32bcd1745a1e979bb1d3d35cd1b..2191204c099bc0429b3b7fe8ac222080a3675bd3 100644 (file)
@@ -2,10 +2,12 @@ config BR2_PACKAGE_RUBY
        bool "ruby"
        depends on BR2_USE_WCHAR
        depends on BR2_TOOLCHAIN_HAS_THREADS
+       depends on !BR2_PREFER_STATIC_LIB
        help
          Object Oriented Scripting Language.
 
          http://www.ruby-lang.org/
 
-comment "ruby needs a toolchain w/ wchar, threads"
-       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+comment "ruby needs a toolchain w/ wchar, threads, dynamic library"
+       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
+               BR2_PREFER_STATIC_LIB