Comments (10)
Maybe we can remove it now?
from pkg-config-rs.
Possibly, but most likely it will break someone's setup :)
I'd like to do a pkg-config 0.5 release in the future that drops all these weird hacks that come without explanation and instead rely solely on the default pkg-config
behavior (and if needed people can override that with the pkg-config
environment variables, we don't have to set them ourselves, or with a wrapper script). Currently this crate is rather opinionated about the build environment, which causes a couple of problems.
from pkg-config-rs.
@sdroege, any news in providing a way to get it linking to static libraries more easily?
from pkg-config-rs.
@alexcrichton, can you please remove this “feature” or at least allow us to disable it via an environment variable? It is clearly wrong and based on some weird assumption that doesn’t hold universally. The workaround with SYSROOT=/dummy
cannot be used when cross-compiling.
from pkg-config-rs.
That seems to come from 9a57960 by @alexcrichton . I don't understand the rationale given in the commit message though. Maybe he can explain :)
from pkg-config-rs.
Hm given how that was around 7 years ago, I don't really remember much about the context... 99% of the time commits like that were "this fixes a bug somewhere" and I didn't do a great job of documenting what bug was fixed where. I don't currently remember what bug was fixed either, so sorry but I don't think I can be of much help :(
from pkg-config-rs.
I've just come up against this issue. Is there something I could do to help accelerate the next big release of pkg-config?
from pkg-config-rs.
@sdroege wrote:
Possibly, but most likely it will break someone's setup :)
Maybe we can introduce another env var to disable the current behavior that refuses to statically link system libs? A quick and quite dirty workaround already exists by setting, e.g. SYSROOT=/asdf
but it would be nicer to have something explicit rather than relying on such side-effects.
from pkg-config-rs.
@sdroege established a plan on how to move forward but nothing happened since 2 years.
from pkg-config-rs.
This affects our Nettle bindings as well: https://gitlab.com/sequoia-pgp/nettle-sys/-/issues/16
from pkg-config-rs.
Related Issues (20)
- Install/build pkg-config if it's not available on the system HOT 2
- Dependencies on the environment variables are not properly reported to cargo HOT 4
- Using pkg-config in build.rs on FreeBSD brokes ncurses normal work HOT 2
- Improving cross-compilation experience HOT 3
- Add readme = "README.md" in cargo.toml to have the readme displayed on crates.io HOT 2
- Dependency being constantly rebuilt due to 'env_metadata' being set to 'true' HOT 8
- Should we parse -isystem Cflags? HOT 2
- customized pkg-config is incomplete? HOT 1
- Bug: Missing support for `pkgconf` for Fedora HOT 3
- v0.3.21 raised MSRV to 1.47.0 HOT 4
- Placing pkg-config.exe file to this git if possible HOT 3
- Libraries linked in incorrect order HOT 3
- Incorrect parse result for raw archive path HOT 3
- [Feature Request] Add configurable linking modifiers HOT 6
- `PKG_CONFIG_PATH_FOR_BUILD` env var HOT 4
- Allow disabling pkg-config altogether HOT 7
- static-nobundle option
- Unable to correctly identify a type of Windows static library name, such as `foo.lib` HOT 7
- pkg-config finds mingw *.a library for msvc target HOT 5
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 pkg-config-rs.