include makefile.conf later, reset_timer in strstr bench
[libc-test] / Makefile.inc
index ff5b5ff..ae2fa3f 100644 (file)
@@ -14,15 +14,16 @@ usemusl = yes
 prefix = /usr/local/musl
 includedir = $(prefix)/include
 libdir = $(prefix)/lib
--include $(ROOTDIR)/Makefile.conf
 
 AR=ar
 RANLIB=ranlib
 
-CFLAGS += -g -std=c99 -pipe -Wall
-LDFLAGS += -g -lpthread
+CFLAGS += -g -D_POSIX_C_SOURCE=200809L -std=c99 -pipe -Wall
+LDFLAGS += -g -lpthread -lrt -lm
 INC += -I$(ROOTDIR)/common
 
+-include $(ROOTDIR)/Makefile.conf
+
 ifeq ($(usemusl), yes)
 CC=gcc
 LIBCC=$(shell gcc -print-file-name=libgcc.a |sed 's,/libgcc.a,,')