gcc-multilib: fix source _triplet for install
The results are not in x86_64-unknown-linux-gnu but x86_64-pc-linux-gnu thus fix the source paths for copying 32 bit libraries, headers, and specs.
This commit is contained in:
parent
3c45c56d8a
commit
0dbdcb4e1d
1 changed files with 4 additions and 3 deletions
|
@ -69,6 +69,7 @@ do_build() {
|
|||
make ${makejobs}
|
||||
}
|
||||
do_install() {
|
||||
local _pc_triplet=x86_64-pc-linux-gnu
|
||||
# Install to a tempdir and then only copy relevant files.
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
vmkdir usr/lib
|
||||
|
@ -83,12 +84,12 @@ do_install() {
|
|||
vmkdir usr/include/c++/${_majorver}/${_triplet}
|
||||
vmkdir usr/lib/gcc/${_triplet}/${_majorver}
|
||||
|
||||
cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_triplet}/${version}/32 \
|
||||
cp -a ${wrksrc}/${pkgname}-build/usr/lib/gcc/${_pc_triplet}/${version}/32 \
|
||||
${DESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}/
|
||||
cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${version}/${_triplet}/32 \
|
||||
cp -a ${wrksrc}/${pkgname}-build/usr/include/c++/${version}/${_pc_triplet}/32 \
|
||||
${DESTDIR}/usr/include/c++/${_majorver}/${_triplet}
|
||||
|
||||
vinstall ${wrksrc}/host-${_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_majorver}
|
||||
vinstall ${wrksrc}/host-${_pc_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_majorver}
|
||||
|
||||
rm -f ${DESTDIR}/usr/lib64
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue