-CFLAGS = -Os -nostdinc -ffreestanding -pipe
-LDFLAGS = -nostdlib -shared -Wl,-Bsymbolic
-INC = -I./include -I./src/internal
-PIC = -fPIC
+CFLAGS = -Os -nostdinc -ffreestanding -std=c99 -D_XOPEN_SOURCE=700 -pipe
+LDFLAGS = -nostdlib -shared -fPIC -Wl,-e,_start -Wl,-Bsymbolic-functions
+INC = -I./include -I./src/internal -I./arch/$(ARCH)
+PIC = -fPIC -O3