changeset 428:346fbeed3612

Two uClibc fixes from Natanael Copa.
author Rob Landley <rob@landley.net>
date Wed, 04 Apr 2007 14:48:49 -0400
parents 8b46682247a5
children 67c767fc07c8
files Makefile bcheck.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Mar 30 11:46:43 2007 -0400
+++ b/Makefile	Wed Apr 04 14:48:49 2007 -0400
@@ -5,7 +5,7 @@
 
 CFLAGS+=-g -Wall -fsigned-char -Os
 ifndef CONFIG_WIN32
-LIBS=-ldl
+LIBS=-ldl -lm
 BCHECK_O=bcheck.o
 endif
 CFLAGS_P=$(CFLAGS) -pg -static -DCONFIG_TCC_STATIC
--- a/bcheck.c	Fri Mar 30 11:46:43 2007 -0400
+++ b/bcheck.c	Wed Apr 04 14:48:49 2007 -0400
@@ -36,8 +36,8 @@
 
 #define HAVE_MEMALIGN
 
-#if defined(__FreeBSD__) || defined(__dietlibc__)
-#warning Bound checking not fully supported on FreeBSD
+#if defined(__FreeBSD__) || defined(__dietlibc__) || defined(__UCLIBC__)
+#warning Bound checking not fully supported in this environment.
 #undef CONFIG_TCC_MALLOC_HOOKS
 #undef HAVE_MEMALIGN
 #endif