diff --git a/dist/gdb/Makefile.osx b/dist/gdb/Makefile.osx
index 9b0587fe9a7cbe564e05ce5f24437b61a916e897..a41fe89161b7d1e9d1a9237a209f17d70af8acc2 100644
--- a/dist/gdb/Makefile.osx
+++ b/dist/gdb/Makefile.osx
@@ -52,7 +52,7 @@ ${staging}/lib/libexpat.a: ${source}/expat-${expatversion}.tar.gz | makestagingd
 	cd ${staging} && \
 	echo "Extracting expat..." && \
 	tar xf ${source}/expat-${expatversion}.tar.gz && cd expat-${expatversion} && \
-	./configure --disable-shared -prefix=/ && ${MAKE} && ${MAKE} install
+	./configure --disable-shared -prefix=${staging} && ${MAKE} && ${MAKE} install
 
 ${staging}/lib/libpython${pyversion}.a: ${source}/Python-${pyversion}.tgz | makestagingdir
 	unset PYTHONHOME && \