Commit 8d6a16bb authored by Jeremy Soller's avatar Jeremy Soller

Update for OS X

parent 72fa53f6
......@@ -12,6 +12,18 @@ then
"$ROOT/usr/lib/libm.a" \
"$ROOT/usr/lib/libgcc.a" \
"$ROOT/usr/lib/libc.a"
elif [ "`uname`" == "Darwin" ]
then
C_INCLUDE_PATH="$ROOT/usr/include" \
LIBRARY_PATH="$ROOT/usr/lib" \
x86_64-elf-gcc -v \
-static -nostartfiles -nostdlib -nodefaultlibs \
-undef -imacros "$ROOT/define.h" \
"$@" \
"$ROOT/usr/lib/crt0.o" \
"$ROOT/usr/lib/libm.a" \
"$ROOT/usr/lib/libgcc.a" \
"$ROOT/usr/lib/libc.a"
else
echo "$0: `uname` not supported"
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment