Skip to content

pkgconfig (and therefore libcurl) doesn't work with static builds #1466

@abarnert-pg

Description

@abarnert-pg
cmake -DENABLE_STATIC_LIB=true -DENABLE_SHARED_LIB=false
make
make install

The library is built and installed as lib/libnghttp2_static.a, but the lib/libnghttp2.pc (and lib/pkgconfig/libnghttp2.pc) file says Libs: -L${libdir} -lnghttp2.

Since libcurl only knows how to find nghttp2 by finding its .pc and using the info there, I can't build it against a static nghttp2 unless I do something like sed -e"|-lnghttp2|-lnghttp2_static|" both copies of the .pc file after install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions