Comments (1)
Hi Igor,
I don't think there's a clean way to handle this other than having cases for handling disto-specific package quirks, like not providing a static library.
Although, from reading around it does seems like that dynamically linked libraries are preferred by package managers.[1]
While I couldn't find something more authorative, the whole Arch Linux page for Haskell does seem to mention that the packages provided by Arch are dynamically linked, whereas GHC is set-up for static compilation by default which seems to lead to a lot of frustration for Haskell devs.[2][3]
Debian (and Ubuntu by extension) seems to be leaning towards the same idea of providing dynamically linked libraries first, and then providing the static ones in a separate -dev
package together with the header files.[4] So Debian-based distros are at least guaranteed to have a statically compiled version of the libraries we are using.
As for the more practical concerns; having Mambo be dynamically compiled by default is fine, if there's no big performance regressions. I don't know if there's any plans of providing precompiled binaries, in which case being able to statically compile to avoid DLL hell would be nice for distribution purposes.
In the case of a performance regression, a possibility would be to provide the dependencies ourselves, like PIE.
[1] https://old.reddit.com/r/haskell/comments/7jyie0/the_arch_linux_community_does_not_look_very_about/draeoji/
[2] https://wiki.archlinux.org/title/haskell#Configuration
[3] https://old.reddit.com/r/archlinux/comments/gutkbu/setting_up_haskell_devel_environment_on_arch/
[4] https://www.debian.org/doc/debian-policy/ch-sharedlibs.html#static-libraries
from mambo.
Related Issues (20)
- Incorrect pcrel address calculation in Thumb HOT 4
- Segmentation fault on RPi 3 B (2018-11-13-raspbian-stretch) HOT 3
- Assertion error and Segmentation fault on docker containers HOT 2
- thumb_load_store_single_reg_imm12_32 caculate wrong instruction whem imm12 is less than 0x40 HOT 4
- Error compiling - cannot find pie/pie-arm HOT 2
- plugin compile errorerror: 'mambo_context' {aka 'struct <anonymous>'} has no member named 'read_address' HOT 3
- cannot stop main thread when running on android HOT 9
- vcvtp instruction not handled HOT 1
- status flags currupted by inline hash lookup code HOT 4
- Is there any way to build Mambo as a Dynamic Linked Library?
- Continuous Integration (CI) HOT 1
- Unknown A64 instruction: 82 HOT 2
- Need help executing 32bit arm binaries on aarch64 HOT 3
- Unknown A64 instruction
- Segmentation fault when main thread finishes before its children
- ISPASS 2023 - MAMBO for RISC-V HOT 2
- Simple multithreaded program hangs on RISC-V HOT 3
- Mambo on rv32 HOT 1
- MAMBO fails to run on kernel 6.5.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mambo.