aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8f2c7b2..ff643e8 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,9 @@ CCFLAGS_UNHOSTED = -nostdinc -ffreestanding
# Preprocessor flags defined by slibc that are required to build the slibc.
CCFLAGS_SLIBC_DEFS = -D_SLIBC_SOURCE=1 -D_GNU_SOURCE=1 -D_BSD_SOURCE=1 -D_SLIBC_SUPPRESS_WARNINGS=1 \
- -D_POSIX_C_SOURCE=999999L -D_XOPEN_SOURCE=9999
+ -D_POSIX_C_SOURCE=999999L -D_XOPEN_SOURCE=9999 -D__BUILDING_SLIBC=1
+# __BUILDING_SLIBC is used to that make all prototypes visible, that are otherwise
+# hidden because the library is compiled with a too old revision of C.
# Flag that specifies which C dialect the library is written.
CCFLAGS_CSTD = -std=gnu99