Commit fd716b6d authored by Jeremy Soller's avatar Jeremy Soller

Add gcc shim

parent 4bff613d
#!/bin/bash
ROOT="$(cd `dirname $0` && pwd)"
if [ "`uname`" == "Linux" ]
then
C_INCLUDE_PATH="$ROOT/usr/include" \
LIBRARY_PATH="$ROOT/usr/lib" \
gcc -v \
-static -nostartfiles -nostdlib -nodefaultlibs \
-undef -imacros "$ROOT/define.h" \
"$ROOT/usr/lib/crt0.o" \
-fno-stack-protector -U_FORTIFY_SOURCE \
"$@"
else
echo "$0: `uname` not supported"
exit 1
fi
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