From f46d948b97704e6391500d79c4044636ebe2d1d3 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sat, 26 Nov 2016 18:03:31 +0000 Subject: [PATCH] newlib: fix static build again git-svn-id: svn://kolibrios.org@6765 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/sdk/sources/newlib/libc/Makefile | 1 - contrib/sdk/sources/newlib/libc/include/newlib.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/sdk/sources/newlib/libc/Makefile b/contrib/sdk/sources/newlib/libc/Makefile index 43505b8673..e83bf16fb0 100644 --- a/contrib/sdk/sources/newlib/libc/Makefile +++ b/contrib/sdk/sources/newlib/libc/Makefile @@ -553,7 +553,6 @@ ifeq ($(findstring static,$(MAKECMDGOALS)),static) LIB_SRCS:= $(STATIC_SRCS) LIB_OBJS:= $(STATIC_OBJS) -CFLAGS += -DSTATIC_LIBC else diff --git a/contrib/sdk/sources/newlib/libc/include/newlib.h b/contrib/sdk/sources/newlib/libc/include/newlib.h index 4ac4d9fa3a..a6e3d3963b 100644 --- a/contrib/sdk/sources/newlib/libc/include/newlib.h +++ b/contrib/sdk/sources/newlib/libc/include/newlib.h @@ -187,6 +187,10 @@ #define __DYNAMIC_REENT__ +#ifdef STATIC_LIBC + #define BUILD_LIBC +#endif + #ifdef BUILD_LIBC #define __EXPORT #define __IMPORT