mleku on Nostr: btw, default autotools compiles seem to make the static library... you get a .a, .la ...
btw, default autotools compiles seem to make the static library... you get a .a, .la (which just points at the .a as its binary) and .so in maybe several versions - at least with libsecp256k1 it was
and so i was able to do this:
mleku@iox:~/src/realy.lol/cmd/realy$ ls -lash|grep realy
23M -rwxrwxr-x 1 mleku mleku 23M Nov 10 20:16 realy
4.0K -rw-rw-r-- 1 mleku mleku 414 Oct 20 22:57 realy.service
mleku@iox:~/src/realy.lol/cmd/realy$ ldd realy
not a dynamic executable
and you see, that only added 3mb to the size of the binary and i can distribute that and it will work on any system with glib2 on amd64 architecture
Published at
2024-11-10 20:22:14Event JSON
{
"id": "6ea0f85bcbe4d0f11da24916cee494cffdbbc15a94befd6a13e603057ecc831c",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1731270134,
"kind": 1,
"tags": [
[
"e",
"8967f9612f7d0a92c023c62ca672527f7bc32c9e9ba2aeee459e691a03d3f8cc",
"nostr-idb://cache-relay",
"root"
],
[
"e",
"87ec1b96bba8707e8b33c5bcce319b640f4b6a1fb278c701032e77209a91ac68",
"wss://relay.primal.net/",
"reply"
],
[
"p",
"036533caa872376946d4e4fdea4c1a0441eda38ca2d9d9417bb36006cbaabf58",
"",
"mention"
],
[
"p",
"0689df5847a8d3376892da29622d7c0fdc1ef1958f4bc4471d90966aa1eca9f2",
"",
"mention"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "btw, default autotools compiles seem to make the static library... you get a .a, .la (which just points at the .a as its binary) and .so in maybe several versions - at least with libsecp256k1 it was\n\nand so i was able to do this:\n\nmleku@iox:~/src/realy.lol/cmd/realy$ ls -lash|grep realy\n 23M -rwxrwxr-x 1 mleku mleku 23M Nov 10 20:16 realy\n4.0K -rw-rw-r-- 1 mleku mleku 414 Oct 20 22:57 realy.service\nmleku@iox:~/src/realy.lol/cmd/realy$ ldd realy\n not a dynamic executable\n\nand you see, that only added 3mb to the size of the binary and i can distribute that and it will work on any system with glib2 on amd64 architecture",
"sig": "0f079e524d7e1fa42fe8424ac1ef4066d0fef0cb3ff2bd3a329bea05494f6a449b79332cc803e70d6f79400563bce3f7eb7f9c5bb6f5f0f4dc7e69f31c8155ce"
}