Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 2d59ed5

Browse files
committed
gcc: fix build on non 64-bit architectures
1 parent c86ae69 commit 2d59ed5

File tree

1 file changed

+6
-1
lines changed
  • core-devel/gcc/02-compiler

1 file changed

+6
-1
lines changed

core-devel/gcc/02-compiler/beyond

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ ln -sv /usr/bin/cpp "$PKGDIR"/usr/lib/cpp
1212

1313
# Misplaced file that confuses ldconfig(8), provided by GLibc.
1414
mkdir -pv "$PKGDIR"/usr/share/gdb/auto-load/usr/lib
15-
mv -v "$PKGDIR"/usr/lib64/*gdb.py "$PKGDIR"/usr/share/gdb/auto-load/usr/lib
15+
# FIXME: Could go either way.
16+
if [[ "${CROSS:-$ARCH}" = *64 ]]; then
17+
mv -v "$PKGDIR"/usr/lib64/*gdb.py "$PKGDIR"/usr/share/gdb/auto-load/usr/lib
18+
else
19+
mv -v "$PKGDIR"/usr/lib/*gdb.py "$PKGDIR"/usr/share/gdb/auto-load/usr/lib
20+
fi
1621

1722
# Remove files in gcc-runtime.
1823
RTLIBS="asan lsan tsan ubsan vtv itm quadmath atomic gcc_s stdc++ gfortran gomp \

0 commit comments

Comments
 (0)