Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

pkg-config file updates: 'Libs: -lm' + no '/signal' in 'Cflags: -I' #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fbrausse
Copy link

Hi,

when linking using the pkg-config file, -lm is missing. As far as I can see it is used only once:

int iterations = (int)ceil((double)output_len / (double)HASH_OUTPUT_SIZE);
This patch adds -lm to the pkg-config file.

It also removes the trailing path component /signal for the -I option in libsignal-protocol-c.pc.in, as this leads to "namespace pollution" in the sense that every pkg-config user of this library cannot use the file names of any header file libsignal-protocol-c provides (which are quite many). Leaving the path prefixed by signal/ on the client side is cleaner (and also what other libraries' pkg-config file exports, e.g., OpenSSL has its headers in include/openssl/ but does not include the suffix in its -I option).

Thanks for your consideration.

…don't include /signal in the '-I' option (namespace pollution)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant