pakur.sh 606 B

1234567891011121314151617181920
  1. cd $SRC/gcc-$surum/build
  2. make DESTDIR=$PKG install
  3. mkdir -p $PKG/usr/lib
  4. ln -sv /usr/bin/cpp $PKG/usr/lib/cpp
  5. ln -sv gcc $PKG/usr/bin/cc
  6. install -dm755 $PKG/usr/share/gdb/auto-load/usr/lib
  7. install -dm755 $PKG/usr/lib/bfd-plugins
  8. cd $PKG/usr/lib/bfd-plugins
  9. sed -i "s|-L$SRC[^ ]* ||g" \
  10. $PKG/usr/lib/{libstdc++.la,libsupc++.la}
  11. mv -v $PKG/usr/lib/*gdb.py \
  12. $PKG/usr/share/gdb/auto-load/usr/lib
  13. ln -sfv ../../lib/gcc/$(gcc -dumpmachine)/$surum/liblto_plugin.so
  14. rm -rf $PKG/usr/share/info
  15. rm -f $PKG/usr/lib/gcc/x86_64-pc-linux-gnu/$surum/*.la
  16. rm -f $PKG/usr/lib/gcc/x86_64-pc-linux-gnu/$surum/plugin/*.la