Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libiio: disable Python for static builds #248412

Merged
1 commit merged into from
Aug 17, 2023

Commits on Aug 16, 2023

  1. libiio: disable Python for static builds

    libiio's Python bindings use ctypes to load the shared library, which
    obviously can't work with a static build. This has recently started
    causing eval errors because the package uses
    stdenv.hostPlatform.extensions.sharedLibrary, which isn't available when
    building a static library.
    
    This patch adds a flag to disable the Python bindings, and automatically
    disables them for static builds.
    
    Note that even with this patch, static libiio doesn't build successfully
    by default. You have to disable avahi and manually disable libxml2 with
    custom CMake flags.
    lopsided98 committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    d16b069 View commit details
    Browse the repository at this point in the history