ensure that musl is compiled as C99 code & XSI option is available in headers
authorRich Felker <dalias@aerifal.cx>
Sun, 13 Feb 2011 21:48:39 +0000 (16:48 -0500)
committerRich Felker <dalias@aerifal.cx>
Sun, 13 Feb 2011 21:48:39 +0000 (16:48 -0500)
Makefile

index e4235cb53381ffe3c9b52439bd27642e97c4eb8f..e9dbdf7fcdb2fc5ee67e4eb0c2d1a1cba30cdb7f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ OBJS = $(SRCS:.c=.o)
 LOBJS = $(OBJS:.o=.lo)
 GENH = include/bits/alltypes.h
 
-CFLAGS  = -Os -nostdinc -ffreestanding -pipe
+CFLAGS  = -Os -nostdinc -ffreestanding -std=c99 -D_XOPEN_SOURCE=700 -pipe
 LDFLAGS = -nostdlib -shared -Wl,-Bsymbolic
 INC     = -I./include -I./src/internal
 PIC     = -fPIC