diff --git a/Make.defs b/Make.defs index 4a2dcfa481d..4f56735304e 100644 --- a/Make.defs +++ b/Make.defs @@ -23,6 +23,12 @@ TOPDIR ?= $(APPDIR)/import -include $(TOPDIR)/Make.defs +# Send the emulated TLS calls of loadable modules and of the programs of a +# kernel build to libc (EMUTLS_LDFLAGS: see tools/Config.mk of NuttX) + +LDELFFLAGS += $(EMUTLS_LDFLAGS) +LDMODULEFLAGS += $(EMUTLS_LDFLAGS) + # Application Directories # BUILDIRS is the list of top-level directories containing Make.defs files