priv+=( "libnghttp3" "-libtcp2" ) should be priv+=( "libnghttp3" "libngtcp2" ) Reproducible: Always Steps to Reproduce: It's easy to see this bug by compiling networkmanager. It fails saying that it can't find libcurl.