diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2014-09-15 22:13:07 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2014-09-16 22:42:06 +0200 |
commit | 41537a770b46f2376e74af58ba4885749339e81e (patch) | |
tree | c939e7dd15fc1ae1dc9be19f9bd9cf5dd6f016fd /Rules.mak | |
parent | 143b7505a2cc505e94bde9b82cad4f695d15433d (diff) |
buildsys: fix IS_IN_lib*
define NOT_IN_libc / IS_IN_libxxx appropriately
to fix pthread_once
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -633,7 +633,7 @@ WARNING_FLAGS += \ -Wshadow \ -Wundef # Works only w/ gcc-3.4 and up, can't be checked for gcc-3.x w/ check_gcc() -WARNING_FLAGS-gcc-4 += -Wdeclaration-after-statement +#WARNING_FLAGS-gcc-4 += -Wdeclaration-after-statement endif WARNING_FLAGS += $(WARNING_FLAGS-gcc-$(GCC_MAJOR_VER)) $(foreach w,$(WARNING_FLAGS),$(eval $(call check-gcc-var,$(w)))) @@ -737,10 +737,14 @@ ifneq ($(strip $(UCLIBC_EXTRA_LDFLAGS)),"") LDFLAGS += $(call qstrip,$(UCLIBC_EXTRA_LDFLAGS)) endif +ifeq ($(UCLIBC_HAS_STDIO_FUTEXES),y) +CFLAGS += -D__USE_STDIO_FUTEXES__ +endif + ifeq ($(UCLIBC_HAS_THREADS),y) ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y) PTNAME := nptl - CFLAGS += -DHAVE_FORCED_UNWIND + CFLAGS += -DHAVE_FORCED_UNWIND -D_LIBC_REENTRANT else ifeq ($(LINUXTHREADS_OLD),y) PTNAME := linuxthreads.old @@ -814,7 +818,7 @@ endif ifeq ($(UCLIBC_BUILD_NOEXECSTACK),y) $(eval $(call check-as-var,--noexecstack)) endif -ASFLAGS = $(ASFLAG_--noexecstack) +ASFLAGS += $(ASFLAG_--noexecstack) LIBGCC_CFLAGS ?= $(CFLAGS) $(CPU_CFLAGS-y) $(eval $(call cache-output-var,LIBGCC,$(CC) $(LIBGCC_CFLAGS) -print-libgcc-file-name)) |