From ba87e4893ac4c35155c2bd2404a94ef56d05617f Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Mon, 19 Dec 2022 09:33:39 -0700
Subject: [PATCH] Create empty libdl and librt libraries

---
 Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index e3263879..2ae295ed 100644
--- a/Makefile
+++ b/Makefile
@@ -94,6 +94,9 @@ install-libs: libs
 	cp -v "$(BUILD)/release/ld_so" "$(DESTDIR)/lib/ld64.so.1"
 	cp -v "$(BUILD)/openlibm/libopenlibm.a" "$(DESTDIR)/lib/libm.a"
 	cp -v "$(BUILD)/pthreads-emb/libpthread.a" "$(DESTDIR)/lib/libpthread.a"
+	# Empty libraries for dl and rt
+	$(AR) -rcs "$(DESTDIR)/lib/libdl.a"
+	$(AR) -rcs "$(DESTDIR)/lib/librt.a"
 
 install: install-headers install-libs
 
-- 
GitLab