Skip to content

Configure CMake to build statically linked binaries #33

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

Closed
jonas opened this issue Jun 5, 2018 · 2 comments
Closed

Configure CMake to build statically linked binaries #33

jonas opened this issue Jun 5, 2018 · 2 comments
Assignees
Labels
packaging Packaging and distribution of artifacts
Milestone

Comments

@jonas
Copy link
Member

jonas commented Jun 5, 2018

In order to make it easy to generate bindings, users should be able to automatically download the binary from the GitHub release page or via an sbt plugin.

@jonas jonas added this to the 0.1 milestone Jun 5, 2018
@kornilova203
Copy link
Member

kornilova203 commented Jun 12, 2018

Currently executable has following dependencies:

$ ldd scala-native-bindgen
        linux-vdso.so.1 =>  (0x00007ffec3bcb000)
        libLLVM-4.0.so.1 => /usr/lib/llvm-4.0/lib/libLLVM-4.0.so.1 (0x00007f8f16849000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8f164c3000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8f162ac000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8f15ecc000)
        libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f8f15cc4000)
        libedit.so.2 => /usr/lib/x86_64-linux-gnu/libedit.so.2 (0x00007f8f15a8d000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8f15889000)
        libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f8f15660000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8f15441000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8f15224000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8f14ece000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f8f1aae3000)

@jonas
Copy link
Member Author

jonas commented Jun 12, 2018

I found this PR which uses llvm-config to resolve libraries: https://github.com/ponylang/ponyc/pull/2425/files

@jonas jonas self-assigned this Jun 13, 2018
@jonas jonas modified the milestones: 0.1, 0.2 Jun 20, 2018
@jonas jonas added the packaging Packaging and distribution of artifacts label Jun 25, 2018
@jonas jonas closed this as completed in 02e0828 Jun 28, 2018
jonas added a commit that referenced this issue Jun 28, 2018
Fix #33: Configure CMake to build statically linked binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging Packaging and distribution of artifacts
Projects
None yet
Development

No branches or pull requests

2 participants