Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg-config file in Windows missing -liphlpapi for static linking support #1254

Closed
petere opened this issue Mar 3, 2022 · 1 comment
Closed

Comments

@petere
Copy link

petere commented Mar 3, 2022

The libevent.pc file on Windows (mingw) contains

Libs.private: -lws2_32

This line should also contain -liphlpapi.

Without this, static linking against libevent will fail with undefined reference to 'if_nametoindex'.

petere added a commit to petere/pgbouncer that referenced this issue Mar 7, 2022
This allows distributing a zip file of Windows binaries without
external dependencies.

(Note: LIBS=-liphlpapi is needed because of
libevent/libevent#1254 .)

closes pgbouncer#562, closes pgbouncer#581, closes pgbouncer#618, closes pgbouncer#621
petere added a commit to pgbouncer/pgbouncer that referenced this issue Mar 9, 2022
This allows distributing a zip file of Windows binaries without
external dependencies.

(Note: LIBS=-liphlpapi is needed because of
libevent/libevent#1254 .)

closes #562, closes #581, closes #618, closes #621
@azat
Copy link
Member

azat commented Mar 10, 2022

Thanks for the report! Can you submit merge request with this change please?

@azat azat closed this as completed Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants