Created
January 25, 2016 15:54
-
-
Save Keruspe/4028aeab5e588028f120 to your computer and use it in GitHub Desktop.
toolchain-compat-symlinks-1.exheres-0
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
# Copyright 2015 Marc-Antoine Perennou <keruspe@exherbo.org> | |
# Distributed under the terms of the GNU General Public License v2 | |
SUMMARY="Compat symlinks for gcc and friends" | |
HOMEPAGE="" | |
DOWNLOADS="" | |
LICENCES="as-is" | |
SLOT="0" | |
PLATFORMS="~amd64" | |
MYOPTIONS="" | |
DEPENDENCIES="" | |
WORK="${WORKBASE}" | |
src_install() { | |
local tools=( | |
addr2line | |
ar | |
as | |
c++ | |
c++filt | |
cc | |
cpp | |
dwp | |
elfedit | |
fc | |
g++ | |
gcc | |
gcc-ar | |
gcc-nm | |
gcc-ranlib | |
gcov | |
gfortran | |
gprof | |
ld | |
nm | |
objcopy | |
objdump | |
pkg-config | |
ranlib | |
readelf | |
size | |
strings | |
strip | |
) | |
local bindir=/usr/$(exhost --target)/bin/ | |
edo mkdir -p "${IMAGE}${bindir}" | |
for tool in "${tools[@]}"; do | |
dosym {$(exhost --tool-prefix),"${bindir}"}${tool} | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment