summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-20 09:18:50 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-20 09:18:50 +0000
commite356ea321c8098cf1a83a67e27d64c44de08a298 (patch)
tree8be9273fb8f0e6acab47a9e09552cfbea5400b31 /Makefile
parent07ebf927b17572d92e785533d6e8ac1668cc57c6 (diff)
Merge in the pthread library. This is the linuxthreads library taken from
glibc 2.1.3 and ported to work with uClibc by Stefan Soucek and Erik Andersen (me). Stefan has hacked things up such that linuxthreads runs on MMU-less systems (tested only on arm-nommu). Erik cleaned things up and made it work properly as a shared library. -Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0c6dd7a6e..877f47efb 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@
TOPDIR=./
include Rules.mak
-DIRS = extra ldso libc libcrypt libresolv libutil libm #libpthread
+DIRS = extra ldso libc libcrypt libresolv libutil libm libpthread
all: headers uClibc_config.h subdirs shared finished
@@ -51,7 +51,7 @@ ifeq ($(strip $(HAVE_SHARED)),true)
@$(MAKE) -C libresolv shared
@$(MAKE) -C libutil shared
@$(MAKE) -C libm shared
- #@$(MAKE) -C libpthread shared
+ @$(MAKE) -C libpthread shared
else
@echo
@echo Not building shared libraries...
@@ -165,6 +165,11 @@ uClibc_config.h: Makefile Config
else \
echo "#undef __UCLIBC_HAVE_LFS__" >> uClibc_config.h ; \
fi
+ @if [ "$(INCLUDE_THREADS)" = "true" ] ; then \
+ echo "#define __UCLIBC_HAS_THREADS__ 1" >> uClibc_config.h ; \
+ else \
+ echo "#undef __UCLIBC_HAS_THREADS__" >> uClibc_config.h ; \
+ fi
@if [ "$(UNIX98PTY_ONLY)" = "true" ] ; then \
echo "#define UNIX98PTY_ONLY 1" >> uClibc_config.h ; \
else \