summaryrefslogtreecommitdiff
path: root/ports/bin/cc
diff options
context:
space:
mode:
authordzwdz2022-08-26 17:11:23 +0200
committerdzwdz2022-08-26 17:11:23 +0200
commite7676411e49bfd2e0da0b785ad4ac5dc909d0a41 (patch)
tree22f4608e68684aa71d94d2f9ccfd27f7066509e5 /ports/bin/cc
parente6584db26da34572fb13aa236e16e19f71c8e976 (diff)
user/ports: port oed
make clean; ./port ed clean; make -j4 out/libc.a && ./port ed install && make -j4
Diffstat (limited to 'ports/bin/cc')
-rwxr-xr-xports/bin/cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/bin/cc b/ports/bin/cc
new file mode 100755
index 0000000..6478b6e
--- /dev/null
+++ b/ports/bin/cc
@@ -0,0 +1,6 @@
+#!/bin/sh
+exec x86_64-elf-gcc -ffreestanding -fPIE -mno-sse \
+ -nostdlib -Wl,-pie -Wl,-no-dynamic-linker -T $REPO/src/user/linker.ld \
+ -I$REPO/src/ -I$REPO/src/shared/include/ -I$REPO/src/user/lib/include/ \
+ $* \
+ -L$REPO/out/ -lc -lgcc