diff options
-rwxr-xr-x | build | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -179,6 +179,31 @@ $(install_targets): build -exec rm -f '{}' ';' find $(destdir)/usr/share/info -type f -a -size 0c -a \ -exec rm -f '{}' ';' + # TODO: Provide these files in a fixincludes package (arch:any, + # target-specific?). + rm -Rf $(destdir)/usr/lib/$(target)/gcc-$(base_version)/install-tools/ + # TODO: Provide these files in a libstdc++-*-dbg package. + rm -f $(destdir)/usr/lib/$(target)/libstdc++.so.*-gdb.py + rm -Rf $(destdir)/usr/share/gcc-*/python/libstdcxx/ + # TODO: Provide these files in a doc package. + rm -Rf $(destdir)/usr/share/man/ $(destdir)/usr/share/info/ + # TODO: Provide these files in a gcc-*-plugin-dev package. + rm -Rf $(destdir)/usr/lib/$(target)/gcc-$(base_version)/plugin/ + OPK_PACKAGES="\ + gcc-$(base_version)-$(target) \ + cpp-$(base_version)-$(target) \ + g++-$(base_version)-$(target) \ + "; \ + if [ "x$(target)" = 'x$(OPK_HOST_ARCH)' ]; then \ + OPK_PACKAGES="$${OPK_PACKAGES} \ + libgcc.1 \ + libstdc++.6 \ + libstdc++.6-$(base_version)-dev \ + gcc-$(base_version)-locales \ + "; \ + fi; \ + export OPK_PACKAGES; \ + oh-installfiles -d "$(destdir)" install: $(install_targets) |