diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-05-19 20:35:21 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-05-19 20:35:21 (EDT) |
commit | 48588f4d24b16d705738107c38e9375a23a74aaa (patch) | |
tree | 91efa4e50254718705e1b43b80a9cf03c42c947f | |
parent | a2ce7c30c4897d0f74bb11e8e199f2bb4ea2e1c3 (diff) |
build: Fix broken libgcc_s.so link
Before:
/usr/lib/amd64-linux-glibc/gcc/8/libgcc_s.so -> ../../
After:
/usr/lib/amd64-linux-glibc/gcc/8/libgcc_s.so -> /lib/amd64-linux-glibc/libgcc_s.so.1
-rwxr-xr-x | build | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,7 @@ #!/usr/bin/make -f +libgcc_soversion = 1 + # POSIX.1-2008: # If the pathname does not begin with a '/' it shall be treated as relative to # the current working directory of the process, not relative to the directory @@ -208,9 +210,6 @@ install-native: # Target-arch libraries: mkdir -p $(destdir)$(libdir) mv $(destdir)$(libdir)/$(libsuffix)/* $(destdir)$(libdir) - # Put libgcc_s.so.* under /lib. - mkdir -p $(destdir)/lib/$(OPK_HOST_ARCH) - mv $(destdir)$(libdir)/libgcc_s.so.* $(destdir)/lib/$(OPK_HOST_ARCH) # Put *.so links in a versioned directory. We want links to # libfoo.so.x, not libfoo.x.y.z as libtool generates. set -e; \ @@ -223,6 +222,11 @@ install-native: # Put *.o and *.spec files in a versioned directory. mv $(destdir)$(libdir)/*.o $(destdir)$(libdir)/*.spec \ $(destdir)$(tgtlibdir) + # Put libgcc_s.so.* under /lib. + mkdir -p $(destdir)/lib/$(OPK_HOST_ARCH) + mv $(destdir)$(libdir)/libgcc_s.so.* $(destdir)/lib/$(OPK_HOST_ARCH) + ln -sf /lib/$(OPK_HOST_ARCH)/libgcc_s.so.$(libgcc_soversion) \ + $(destdir)$(tgtlibdir)/libgcc_s.so # Remove libitm files. rm -f $(destdir)$(libdir)/libitm.* # Remove libmpx files. |