Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. GCCVERSION=$(gcc --version | grep ^gcc | sed 's/^.* //g')
  4. DESTDIR=/usr/x86_64-pc-linux-gnu/binutils-bin/lib/bfd-plugins
  5.  
  6. if [ ! -d ${DESTDIR} ]; then
  7. mkdir -p ${DESTDIR}
  8. else
  9. rm -iv ${DESTDIR}/liblto_plugin.so*
  10. fi
  11.  
  12. ln -sfv /usr/libexec/gcc/x86_64-pc-linux-gnu/${GCCVERSION}/liblto_plugin.so* ${DESTDIR}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement