
do not append '-l' to anything starting with '-' previously cmake-generated pkg-config file contained next line: Libs: -L${libdir} -ltorrent-rasterbar -l-pthread -lssl -lcrypto (note '-l' before '-pthread', even without space) the same line with this fix included is correct: Libs: -L${libdir} -ltorrent-rasterbar -pthread -lssl -lcrypto