From f3ec62e6af22179e04ac73c9e8a54f8d23c3ba31 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 15 May 2019 02:29:28 -0400 Subject: Install libraries in standard libdir --- (limited to 'build') diff --git a/build b/build index 9292a24..ba387e9 100755 --- a/build +++ b/build @@ -65,7 +65,6 @@ bootstrap1_opts = \ --disable-libssp libdir = /usr/lib/$(OPK_HOST_ARCH) -gcclibdir = /usr/lib/$(OPK_HOST_ARCH)/gcc-$(base_version) tgtlibdir = /usr/lib/$(OPK_HOST_ARCH)/$(target)/gcc-$(base_version) tgtincdir = /usr/include/$(target)/c++-$(base_version) libsuffix = $$(g++ -print-multi-os-directory) @@ -182,17 +181,17 @@ $(installnative_targets): mkdir -p $(destdir)$(tgtlibdir) mv $(destdir)$(libdir)/gcc/$(target_gnu)/$(version)/* \ $(destdir)$(tgtlibdir) - mkdir -p $(destdir)$(gcclibdir) - mv $(destdir)$(libdir)/$(libsuffix)/* $(destdir)$(gcclibdir) + mkdir -p $(destdir)$(libdir) + mv $(destdir)$(libdir)/$(libsuffix)/* $(destdir)$(libdir) mkdir -p $(destdir)$(tgtincdir) mv $(destdir)/usr/include/c++-$(base_version)/$(target_gnu)/* \ $(destdir)$(tgtincdir) # Remove libquadmath files. - rm -f $(destdir)$(gcclibdir)/libquadmath.* + rm -f $(destdir)$(libdir)/libquadmath.* # Remove libtool archives and static libraries. rm -f \ - $(destdir)$(gcclibdir)/*.la \ - $(destdir)$(gcclibdir)/*.a \ + $(destdir)$(libdir)/*.la \ + $(destdir)$(libdir)/*.a \ $(destdir)$(tgtlibdir)/*.la \ $(destdir)$(tgtlibdir)/plugin/*.la # Remove the info directory node. @@ -206,7 +205,7 @@ $(installnative_targets): # target-specific?). rm -Rf $(destdir)$(tgtlibdir)/install-tools/ # TODO: Provide these files in a libstdc++-*-dbg package. - rm -f $(destdir)$(gcclibdir)/libstdc++.so.*-gdb.py + rm -f $(destdir)$(libdir)/libstdc++.so.*-gdb.py rm -Rf $(destdir)/usr/share/gcc-$(version)/python/libstdcxx/ # TODO: Provide these files in a doc package. rm -Rf $(destdir)/usr/share/man/ $(destdir)/usr/share/info/ -- cgit v0.9.1