From f75a177028fa974947f07c7ccd8c7471f3f54a65 Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pjm@nac.net>
Date: Sun, 21 Apr 2013 12:21:55 -0400
Subject: build: Put libgcc_s.so.1 under /lib.

---
diff --git a/build b/build
index f0e2138..f217ec1 100755
--- a/build
+++ b/build
@@ -76,6 +76,11 @@ install: build
 		fincludedir=/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/finclude \
 		toolexeclibdir=/usr/lib/$(OPK_HOST_ARCH) MULTIOSDIR=
 	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libiberty.a
+	mkdir -p dest/lib/$(OPK_HOST_ARCH)
+	mv dest/usr/lib/$(OPK_HOST_ARCH)/libgcc_s.so.1 dest/lib/$(OPK_HOST_ARCH)
+	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libgcc_s.so
+	ln -sf /lib/$(OPK_HOST_ARCH)/libgcc_s.so.1 \
+		dest/usr/lib/$(OPK_HOST_ARCH)/libgcc_s.so
 
 # POSIX.1-2008:
 #   If the pathname does not begin with a '/' it shall be treated as relative to
--
cgit v0.9.1