Simple question around pkg-config

I have a hard time getting cargo to use openssl11 on centos 7. the pkg-config has both openssl and openssl11, but when I built, it only use openssl.

I don't know if there's any non-hacky way to convince pkg-config to look for a differently-named package.

However, if you're ok with a statically linked copy, you can skip pkg-config entirely by enabling vendored flag:

thx for the tip, I was able to setup environment variables so my rust program will build with openssl11 library