Skip to content

Commit 77c8fec

Browse files
badochovHubert Badocha
authored andcommitted
Disable TLS
JIRA: RTOS-664
1 parent d49c885 commit 77c8fec

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ INSTALL_TARGETS := install-headers install-libs
6666
ifeq ($(LIBPHOENIX_PIC), y)
6767
CFLAGS += $(TARGET_PIC_FLAG)
6868
ifeq ($(LIBPHOENIX_SHARED), y)
69+
CPPFLAGS += -DLIBPHOENIX_SHARED
6970
include shared.mk
7071
endif
7172
endif

errno/errno.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
#include <arch.h>
2020

2121

22+
#ifdef LIBPHOENIX_SHARED
23+
/* FIXME: TLS is not yet supported by dynamic linker. */
24+
#undef __LIBPHOENIX_ARCH_TLS_SUPPORTED
25+
#endif
26+
27+
2228
#ifdef __LIBPHOENIX_ARCH_TLS_SUPPORTED
2329

2430
static __thread int __errno_tls;

0 commit comments

Comments
 (0)