diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-15 07:43:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-15 07:47:27 +0000 |
commit | 1860ab9f0b474dcc7c9dc18c6f28e542fa51af42 (patch) | |
tree | ba3106a6d17692a4e173227aebf4498cf4064758 /main | |
parent | e46aa0ee28166182ec56389b97d6a37a8bfb985c (diff) | |
download | aports-1860ab9f0b474dcc7c9dc18c6f28e542fa51af42.tar.bz2 aports-1860ab9f0b474dcc7c9dc18c6f28e542fa51af42.tar.xz |
main/gc: enable dl_iterate_phdr and disable static lib
musl has dl_iterate_phdr but gc only enables it on know platforms.
This is needed for guile-2.
Fix was taken from void linux
https://github.com/voidlinux/void-packages/commit/3df71f2b7bfc98155aa7a1d517c8369384cf3135
Diffstat (limited to 'main')
-rw-r--r-- | main/gc/APKBUILD | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/gc/APKBUILD b/main/gc/APKBUILD index 52f7bbb551..57bd0e04e6 100644 --- a/main/gc/APKBUILD +++ b/main/gc/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=gc pkgver=7.4.2 -pkgrel=0 +pkgrel=1 pkgdesc="A garbage collector for C and C++" url="http://hboehm.info/gc/" arch="all" @@ -25,13 +25,14 @@ prepare() { build() { cd "$_builddir" - [ "$CLIBC" == "musl" ] && export CFLAGS="$CFLAGS -D_GNU_SOURCE -DNO_GETCONTEXT -DUSE_MMAP" + [ "$CLIBC" = "musl" ] && export CFLAGS="$CFLAGS -D_GNU_SOURCE -DNO_GETCONTEXT -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --datadir=/usr/share/doc/gc \ --enable-cplusplus \ + --disable-static \ || return 1 make || return 1 } |