Browse Source

Merge branch 'master' of github.com:redox-os/relibc into platform

Paul Sajna 7 years ago
parent
commit
6b89b4620b
2 changed files with 15 additions and 13 deletions
  1. 1 0
      src/lib.rs
  2. 14 13
      tests/Makefile

+ 1 - 0
src/lib.rs

@@ -7,6 +7,7 @@ extern crate platform;
 extern crate ctype;
 extern crate fcntl;
 extern crate grp;
+extern crate mman;
 extern crate stdio;
 extern crate stdlib;
 extern crate string;

+ 14 - 13
tests/Makefile

@@ -14,17 +14,18 @@ clean:
 run: $(BINS)
 	for bin in $(BINS); do echo "\\033[1m$${bin}\\033[0m"; ./$${bin} test args; done
 
+GCCHEAD=\
+	-nostdinc \
+	-nostdlib \
+	-I ../include \
+	-I ../target/include \
+	-I ../openlibm/include \
+	-I ../openlibm/src \
+	../target/debug/libcrt0.a
+
+GCCTAIL=\
+	../target/debug/libc.a \
+	../openlibm/libopenlibm.a
+
 %: %.c
-	gcc \
-		-fno-stack-protector \
-		-nostdinc \
-		-nostdlib \
-		-I ../include \
-		-I ../target/include \
-		-I ../openlibm/include \
-		-I ../openlibm/src \
-		../target/debug/libcrt0.a \
-		$< \
-		../target/debug/libc.a \
-		../openlibm/libopenlibm.a \
-		-o $@
+	gcc -fno-stack-protector $(GCCHEAD) $< $(GCCTAIL) -o $@