diff --git a/recipes/curl/recipe.sh b/recipes/curl/recipe.sh
index a33f5aa98912e09e71e2d6d74bfed923d8f72d21..0bf0d3882973bca58f4b6312eb3d8a2a3b226523 100644
--- a/recipes/curl/recipe.sh
+++ b/recipes/curl/recipe.sh
@@ -17,6 +17,8 @@ function recipe_update {
 
 function recipe_build {
     sysroot="$(realpath ../sysroot)"
+    export CFLAGS="-I$sysroot/include"
+    export LDFLAGS="-L$sysroot/lib"
     wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
     autoreconf -i
     ./configure \
@@ -29,6 +31,7 @@ function recipe_build {
         --disable-tftp \
         --disable-threaded-resolver \
         --with-ca-path=/ssl/certs \
+        --with-nghttp2="$sysroot" \
         --with-ssl="$sysroot" \
         --with-zlib="$sysroot"
     make -j"$(nproc)"