Giter VIP home page Giter VIP logo

Comments (9)

poljar avatar poljar commented on August 25, 2024

What do you mean by that?

Almost everything is statically compiled in, Rust doesn't support dynamic linking:

ldd .weechat/plugins/matrix.so
ldd: warning: you do not have execution permission for `.weechat/plugins/matrix.so'
	linux-vdso.so.1 (0x00007ffe88989000)
	libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007f3501338000)
	libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007f350105a000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f3500e44000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f3500e29000)
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f3500e08000)
	libm.so.6 => /usr/lib/libm.so.6 (0x00007f3500cc4000)
	libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f3500cbb000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007f3500aef000)
	/usr/lib64/ld-linux-x86-64.so.2 (0x00007f3502560000)

from weechat-matrix-rs.

misterhsp avatar misterhsp commented on August 25, 2024

I mean statically linked.

...

from weechat-matrix-rs.

poljar avatar poljar commented on August 25, 2024

I know what static linking means, I don't know what you would like to change in the context of dynamic Weechat plugins, so that a plugin would be considered to be statically linked. As I pointed out, almost all the libraries that the plugin uses are statically linked.

You'll need to provide more than a 4 word sentence for me to understand what you had in mind.

from weechat-matrix-rs.

misterhsp avatar misterhsp commented on August 25, 2024

As you can see the result is only dynamically linked.

file libmatrix.so 
libmatrix.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=78d10f2d7dcaa267cb22eac53713fa171c42adbd, with debug_info, not stripped

from weechat-matrix-rs.

poljar avatar poljar commented on August 25, 2024

This his how Weechat and other dynamic plugin systems in the C world work, while it's technically possible to produce a .a static lib of this project, Weechat can't load such files.

from weechat-matrix-rs.

misterhsp avatar misterhsp commented on August 25, 2024

from weechat-matrix-rs.

poljar avatar poljar commented on August 25, 2024

Explain how what works?

from weechat-matrix-rs.

misterhsp avatar misterhsp commented on August 25, 2024

from weechat-matrix-rs.

catthehacker avatar catthehacker commented on August 25, 2024

Rust Reference book has quite good description about what I think you want to know
https://doc.rust-lang.org/reference/linkage.html

from weechat-matrix-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.