diff --git a/recipes/prboom/recipe.sh b/recipes/prboom/recipe.sh
index 95ac19249b6ff78e73024e9d14c07b1dfec03aa6..6f3a5a026348ab36f90b04b4f8889b27e99aa239 100644
--- a/recipes/prboom/recipe.sh
+++ b/recipes/prboom/recipe.sh
@@ -13,9 +13,10 @@ function recipe_update {
 }
 
 function recipe_build {
+    sysroot="$(realpath ../sysroot)"
     autoreconf -if
     wget -O autotools/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
-    ./configure --prefix=/ --host=${HOST} --disable-sdltest --disable-cpu-opt --disable-gl --without-net --with-sdl-prefix="$PWD/../sysroot"
+    ./configure --prefix=/ --host=${HOST} --disable-sdltest --disable-cpu-opt --disable-gl --without-net --with-sdl-prefix="$sysroot"
     make -j"$(nproc)"
     skip=1
 }
diff --git a/recipes/sdl/recipe.sh b/recipes/sdl/recipe.sh
index 375ac77753dcb6015da6a1e05513dcee038c4050..8d762a0d3620504db14dc558b3ff4a7064ff0817 100644
--- a/recipes/sdl/recipe.sh
+++ b/recipes/sdl/recipe.sh
@@ -46,6 +46,6 @@ function recipe_clean {
 function recipe_stage {
     dest="$(realpath $1)"
     make DESTDIR="$dest" install
-    rm -f "$dest/bin/"*-config "$dest/lib/"*.la
+    rm -f "$dest/lib/"*.la
     skip=1
 }