From 0fa182d351db86871f662727117b8d25a2f1a4f3 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Mon, 26 Mar 2018 20:15:19 -0600
Subject: [PATCH] Use install target for relibc

---
 recipes/relibc/recipe.sh | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/recipes/relibc/recipe.sh b/recipes/relibc/recipe.sh
index 468bd31b0..60aa60c7a 100644
--- a/recipes/relibc/recipe.sh
+++ b/recipes/relibc/recipe.sh
@@ -7,11 +7,6 @@ function recipe_build {
 
 function recipe_stage {
     dest="$(realpath $1)"
-    mkdir -pv "$dest/lib"
-    mkdir -pv "$dest/include"
-    cp -rv "include"/* "$dest/include"
-    cp -rv "target/include"/* "$dest/include"
-    cp -v "target/$TARGET/debug/libc.a" "$dest/lib"
-    cp -v "target/$TARGET/debug/crt0.o" "$dest/lib"
+    make DESTDIR="$dest" install
     skip=1
 }
-- 
GitLab