diff options
-rwxr-xr-x | build | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -204,6 +204,13 @@ install-native: # 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; \ + for link in $(destdir)$(libdir)/*.so; do \ + ln -sf $$(ls $${link}.* | sed 's|^$(destdir)||; q;') \ + $(destdir)$(tgtlibdir)/$${link##*/}; \ + done # Remove libitm files. rm -f $(destdir)$(libdir)/libitm.* # Remove libquadmath files. |