From bbe9701ace6c22d386ea2d3340993c0321763d04 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 24 Jun 2020 08:32:52 -0600 Subject: main/gcc: fix bootstrap --- main/gcc/APKBUILD | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'main/gcc/APKBUILD') diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD index 1f97eba0724..d1c028ed52f 100644 --- a/main/gcc/APKBUILD +++ b/main/gcc/APKBUILD @@ -441,9 +441,11 @@ libcxx() { pkgdesc="GNU C++ standard runtime library" depends= - # verify that we are using clock_gettime rather than doing direct syscalls - # so we dont break 32 bit arches due to time64. - nm -D "$pkgdir"/usr/lib/libstdc++.so.* | grep clock_gettime + if [ "$CHOST" = "$CTARGET" ]; then + # verify that we are using clock_gettime rather than doing direct syscalls + # so we dont break 32 bit arches due to time64. + nm -D "$pkgdir"/usr/lib/libstdc++.so.* | grep clock_gettime + fi mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/${_target:+$CTARGET/}lib/libstdc++.so.* "$subpkgdir"/usr/lib/ -- cgit v1.2.3