gc: set -DHAVE_DL_ITERATE_PHDR on musl, fixes guild build.

This commit is contained in:
Christian Neukirchen 2015-06-13 19:48:32 +02:00
parent 3d737497ad
commit 3df71f2b7b

View file

@ -1,13 +1,14 @@
# Template file for 'gc' # Template file for 'gc'
pkgname=gc pkgname=gc
version=7.4.2 version=7.4.2
revision=2 revision=3
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="automake pkg-config libtool" hostmakedepends="automake pkg-config libtool"
makedepends="libatomic_ops-devel" makedepends="libatomic_ops-devel"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) *-musl)
CFLAGS='-D_GNU_SOURCE -DNO_GETCONTEXT -DUSE_MMAP' CFLAGS='-D_GNU_SOURCE -DNO_GETCONTEXT -DSEARCH_FOR_DATA_START
-DUSE_MMAP -DHAVE_DL_ITERATE_PHDR'
esac esac
short_desc="A garbage collector for C and C++" short_desc="A garbage collector for C and C++"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"