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 e4235cb..e9dbdf7 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