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.
The library is built and installed as
lib/libnghttp2_static.a, but thelib/libnghttp2.pc(andlib/pkgconfig/libnghttp2.pc) file saysLibs: -L${libdir} -lnghttp2.Since
libcurlonly knows how to findnghttp2by finding its.pcand using the info there, I can't build it against a staticnghttp2unless I do something likesed -e"|-lnghttp2|-lnghttp2_static|"both copies of the.pcfile after install.