diff --git a/configure b/configure
index 3e6aa6b..5961bb7 100755
--- a/configure
+++ b/configure
@@ -35,7 +35,7 @@ echo "HAVE_ASAN = ${HAVE_ASAN}" >> ${CONFIG_MK}
update_config_mk
-( cd libffi && sh autogen.sh && MAKE=gmake ./configure --disable-multi-os-directory; )
+( cd libffi && sh autogen.sh && MAKE=gmake ./configure --prefix "${PREFIX}" --disable-multi-os-directory; )
( cd libtommath && ./configure; )
( cd ucd2c && ./configure; )
( cd libc3 && ./configure; )