]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Disable compilation with diet-libc
authorNeilBrown <neilb@suse.de>
Thu, 18 Sep 2008 04:33:37 +0000 (14:33 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 18 Sep 2008 04:33:37 +0000 (14:33 +1000)
We need posix_memalign (or something similar) which diet-libc does not
provide.

Makefile

index 9f08c4259c7fa0056bd793c380f16002967367f2..6b878cc1d160a5e2b74992e5314933968a7d8123 100644 (file)
--- a/Makefile
+++ b/Makefile
 # e.g.  make CXFLAGS=-O to optimise
 TCC = tcc
 UCLIBC_GCC = $(shell for nm in i386-uclibc-linux-gcc i386-uclibc-gcc; do which $$nm > /dev/null && { echo $$nm ; exit; } ; done; echo false No uclibc found )
-DIET_GCC = diet gcc
+#DIET_GCC = diet gcc
+# sorry, but diet-libc doesn't know about posix_memalign, 
+# so we cannot use it any more.
+DIET_GCC = gcc -DHAVE_STDINT_H
 
 KLIBC=/home/src/klibc/klibc-0.77