Explorar o código

(uClibc_config): Define __UCLIBC_UCLINUX_BROKEN_MUNMAP__ for MMU-less systems.

Miles Bader %!s(int64=22) %!d(string=hai) anos
pai
achega
987f4143ba
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Makefile

+ 4 - 0
Makefile

@@ -161,10 +161,14 @@ uClibc_config: Makefile Config
 	else \
 	    echo "#undef __UCLIBC_HAS_IPV6__" >> include/bits/uClibc_config.h ; \
 	fi
+	 # [For now we make the assumption that a linux system without an
+	 # MMU must be uClinux, and must have a broken munmap (both
+	 # assumptions are a bit dodgy, but can be changed in the future).]
 	@if [ "$(HAS_MMU)" = "true" ] ; then \
 	    echo "#define __UCLIBC_HAS_MMU__ 1" >> include/bits/uClibc_config.h ; \
 	else \
 	    echo "#undef __UCLIBC_HAS_MMU__" >> include/bits/uClibc_config.h ; \
+	    echo "#define __UCLIBC_UCLINUX_BROKEN_MUNMAP__ 1" >> include/bits/uClibc_config.h ; \
 	fi
 	@if [ "$(HAS_FLOATING_POINT)" = "true" ] ; then \
 	    echo "#define __UCLIBC_HAS_FLOATS__ 1" >> include/bits/uClibc_config.h ; \