gc: fix musl build. (patch from Alpine.)

This commit is contained in:
Christian Neukirchen 2015-05-19 16:38:52 +02:00
parent cf7dd3afcb
commit 05e2023f74
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- os_dep.c
+++ os_dep.c
@@ -26,7 +26,7 @@
# define __KERNEL__
# include <asm/signal.h>
# undef __KERNEL__
-# else
+# elif defined(__GLIBC__)
/* Kernels prior to 2.1.1 defined struct sigcontext_struct instead of */
/* struct sigcontext. libc6 (glibc2) uses "struct sigcontext" in */
/* prototypes, so we have to include the top-level sigcontext.h to */

View File

@ -5,6 +5,10 @@ revision=1
build_style=gnu-configure
hostmakedepends="automake pkg-config libtool"
makedepends="libatomic_ops-devel"
case "$XBPS_TARGET_MACHINE" in
*-musl)
CFLAGS='-D_GNU_SOURCE -DNO_GETCONTEXT -DUSE_MMAP'
esac
short_desc="A garbage collector for C and C++"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.hboehm.info/gc/"