summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak5
1 files changed, 4 insertions, 1 deletions
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