The pkg-config file correctly supplies -pthread for LDFLAGS, but libtool discards it, leading to linkage failure if libupnp is linked statically.