From e356ea321c8098cf1a83a67e27d64c44de08a298 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 20 Feb 2002 09:18:50 +0000 Subject: 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 --- Rules.mak | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Rules.mak') diff --git a/Rules.mak b/Rules.mak index 92e0ef6e6..18d13b35a 100644 --- a/Rules.mak +++ b/Rules.mak @@ -105,7 +105,7 @@ ifeq ($(strip $(HAVE_SHARED)),true) ifeq ($(strip $(BUILD_UCLIBC_LDSO)),true) LDSO=$(TOPDIR)lib/$(UCLIBC_LDSO) DYNAMIC_LINKER=$(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO) -BUILD_DYNAMIC_LINKER=${shell cd $(TOPDIR)lib && pwd}/$(UCLIBC_LDSO) + BUILD_DYNAMIC_LINKER=${shell cd $(TOPDIR)lib && pwd}/$(UCLIBC_LDSO) else LDSO=$(SYSTEM_LDSO) BUILD_UCLIBC_LDSO=false @@ -116,6 +116,9 @@ endif ifeq ($(strip $(DOPIC)),true) CFLAGS += -fPIC endif +ifeq ($(strip $(INCLUDE_THREADS)),true) + CFLAGS += -D_LIBC_REENTRANT +endif # TARGET_PREFIX is the directory under which which the uClibc runtime # environment will be installed and used on the target system. The -- cgit v1.2.3