oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.22k stars 2.77k forks source link

support using external dependencies from pkgconf #6299

Open selfisekai opened 1 year ago

selfisekai commented 1 year ago

What is the problem this feature would solve?

requirement of many distros for distribution packaging. example policy from gentoo: https://wiki.gentoo.org/wiki/Why_not_bundle_dependencies

What is the feature you are proposing to solve the problem?

implement an option to use pkg-config for providing dependencies:

pkg-config returns flags for dependencies as needed, e.g. on my system:

$ pkg-config --libs --cflags zlib   
 -L/lib -lz

simply, don't ensure dependencies are built as expected in your current workflow, and get the needed flags from pkg-config.

What alternatives have you considered?

No response

tiziodcaio commented 1 month ago

With the removal of the bash part, there was a regression on the feature list, now if it is possible you should provide cmake flags for linking external libraries dynamically.