Created
April 24, 2017 14:37
-
-
Save xvjau/4d8deb2841c6ccd1b844764e67f88569 to your computer and use it in GitHub Desktop.
Update LTO plugins after GCC build.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GCCVERSION=$(gcc --version | grep ^gcc | sed 's/^.* //g') | |
DESTDIR=/usr/x86_64-pc-linux-gnu/binutils-bin/lib/bfd-plugins | |
if [ ! -d ${DESTDIR} ]; then | |
mkdir -p ${DESTDIR} | |
else | |
rm -iv ${DESTDIR}/liblto_plugin.so* | |
fi | |
ln -sfv /usr/libexec/gcc/x86_64-pc-linux-gnu/${GCCVERSION}/liblto_plugin.so* ${DESTDIR} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment