aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile4
-rw-r--r--lib/bcheck.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 3c5b988..9861743 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -30,6 +30,10 @@ ifeq ($(TARGETOS),Darwin)
BCHECK_O =
endif
+ifeq ($(CONFIG_musl),yes)
+ BCHECK_O =
+endif
+
I386_O = libtcc1.o alloca86.o alloca86-bt.o $(BCHECK_O)
X86_64_O = libtcc1.o alloca86_64.o alloca86_64-bt.o $(BCHECK_O)
ARM_O = libtcc1.o armeabi.o alloca-arm.o
diff --git a/lib/bcheck.c b/lib/bcheck.c
index 9eb012f..41c08aa 100644
--- a/lib/bcheck.c
+++ b/lib/bcheck.c
@@ -48,7 +48,7 @@
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
|| defined(__DragonFly__) || defined(__dietlibc__) \
|| defined(__UCLIBC__) || defined(__OpenBSD__) || defined(__NetBSD__) \
- || defined(_WIN32) || defined(TCC_UCLIBC)
+ || defined(_WIN32) || defined(TCC_UCLIBC) || defined(TCC_MUSL)
//#warning Bound checking does not support malloc (etc.) in this environment.
#undef CONFIG_TCC_MALLOC_HOOKS
#undef HAVE_MEMALIGN