How to build a static libjanet?
Hi folks, I'm currently working on bringing jpm[0], the Janet Project Manager, to the repos. Overall I'd say it looks good, but one feature of jpm isn't working. Normally you can build statically linked binaries with jpm if there is a libjanet.a. Now in Janet[1] we unfortunately only build libjanet.so. I know next to nothing about meson/c. Is it possible to build the share and the static libjanet in the same run for janet-devel? Thanks, Jochen [0] https://build.opensuse.org/package/show/home:brejoc/jpm [1] https://build.opensuse.org/package/show/devel:languages:misc/janet
On Fri, Nov 3, 2023 at 9:24 AM Jochen Breuer
Hi folks,
I'm currently working on bringing jpm[0], the Janet Project Manager, to the repos. Overall I'd say it looks good, but one feature of jpm isn't working. Normally you can build statically linked binaries with jpm if there is a libjanet.a. Now in Janet[1] we unfortunately only build libjanet.so. I know next to nothing about meson/c. Is it possible to build the share and the static libjanet in the same run for janet-devel?
The first google hit for "meson default_library" is https://mesonbuild.com/Builtin-options.html
Am 03.11.23 um 07:34 schrieb Andrei Borzenkov:
On Fri, Nov 3, 2023 at 9:24 AM Jochen Breuer
wrote: Hi folks,
I'm currently working on bringing jpm[0], the Janet Project Manager, to the repos. Overall I'd say it looks good, but one feature of jpm isn't working. Normally you can build statically linked binaries with jpm if there is a libjanet.a. Now in Janet[1] we unfortunately only build libjanet.so. I know next to nothing about meson/c. Is it possible to build the share and the static libjanet in the same run for janet-devel?
The first google hit for "meson default_library" is https://mesonbuild.com/Builtin-options.html
Ah, I love this community. When you are totally clueless about something and are you completely stuck, a helping hand comes around and tells you to read _this_ fucking manual! With your help I was able to add more meaning to the hieroglyphs in the spec file. Let's hope I won't have to use the gained knowledge more often! ;)
participants (2)
-
Andrei Borzenkov
-
Jochen Breuer