From 1b3b553b8063ea76b24dea031b0b42cb56559133 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 21 Apr 2013 12:44:31 -0400 Subject: build: Put .so links in versioned directories. --- diff --git a/build b/build index 95c50d1..8d0e28f 100755 --- a/build +++ b/build @@ -76,11 +76,25 @@ 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 + # Move libgcc_s.so.1 under /lib. mkdir -p dest/lib/$(OPK_HOST_ARCH) mv dest/usr/lib/$(OPK_HOST_ARCH)/libgcc_s.so.1 dest/lib/$(OPK_HOST_ARCH) + # Move libgcc_s.so link. 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)/gcc-$(BASE_VERSION)/libgcc_s.so + # Move libquadmath.so link. + rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libquadmath.so + ln -sf /usr/lib/$(OPK_HOST_ARCH)/libquadmath.so.0 \ + dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/libquadmath.so + # Move libgomp.so link. + rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libgomp.so + ln -sf /usr/lib/$(OPK_HOST_ARCH)/libgomp.so.1 \ + dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/libgomp.so + # Move libitm.so link. + rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libitm.so + ln -sf /usr/lib/$(OPK_HOST_ARCH)/libitm.so.1 \ + dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/libitm.so # POSIX.1-2008: # If the pathname does not begin with a '/' it shall be treated as relative to -- cgit v0.9.1