aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2010-09-02 13:33:12 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2010-09-20 22:28:57 +0000
commit69ffd73cac31ecc111e2eaa80158429c1195c97b (patch)
treeda868c5d67ebdd1cabcb1736414d7ef4f20875c9 /main/gcc
parent61add7cadcae47b8d35c6de9c3c0d0d58869a585 (diff)
downloadaports-69ffd73cac31ecc111e2eaa80158429c1195c97b.tar.bz2
aports-69ffd73cac31ecc111e2eaa80158429c1195c97b.tar.xz
main/gcc: fix some libc switches
(cherry picked from commit 81dc228c3cdd22f95fea24cf8d754e04fd400a0b)
Diffstat (limited to 'main/gcc')
-rw-r--r--main/gcc/APKBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index 589abeac76..337a368f1b 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
@@ -7,11 +7,14 @@ _espfver=0.3.6
_uclibc_abiver=0.9.32
if [ "$ALPINE_LIBC" = "eglibc" ]; then
_chost="i686-pc-linux-gnu"
+ _with_arch="i686"
else
_chost="i486-alpine-linux-uclibc"
+ _dynamic_linker="--with-dynamic-linker=ld-uClibc.so.$_uclibc_abiver"
+ _with_arch="i486"
fi
-pkgrel=4
+pkgrel=5
pkgdesc="The GNU Compiler Collection"
url="http://gcc.gnu.org"
license="GPL LGPL"
@@ -73,10 +76,12 @@ build ()
--enable-tls \
--enable-threads \
--with-arch=i486 \
- --with-dynamic-linker=ld-uClibc.so.$_uclibc_abiver \
+ $_with_arch \
+ $_dynamic_linker \
--with-dynamic-linker-prefix=/lib \
--with-system-zlib \
- --without-system-libunwind
+ --without-system-libunwind
+
make || return 1
}