package/python-iptables: add explicit dependency on dynamic libs
authorFrank Vanbever <frank.vanbever@essensium.com>
Wed, 11 Mar 2020 10:54:44 +0000 (11:54 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 15 Apr 2020 20:23:35 +0000 (22:23 +0200)
The package uses ctypes.CDLL extensively which only makes sense when dynamic
libraries are available.

Signed-off-by: Frank Vanbever <frank.vanbever@essensium.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/python-iptables/Config.in

index e55359963e261a2d87edf6f11c6ac0fafbc992c5..a35577bad39df7b1eefa6a1be0dd0f50044853a3 100644 (file)
@@ -1,7 +1,11 @@
 config BR2_PACKAGE_PYTHON_IPTABLES
        bool "python-iptables"
+       depends on !BR2_STATIC_LIBS
        select BR2_PACKAGE_IPTABLES # runtime dependency
        help
          Python bindings for iptables.
 
          https://github.com/ldx/python-iptables
+
+comment "python-iptables needs a toolchain w/ dynamic library"
+       depends on BR2_STATIC_LIBS