Skip to content
Snippets Groups Projects
Commit ec3df2cf authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Complicate CFLAGS

parent ebc2386e
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,15 @@
ROOT="$PWD"
export RUST_TARGET_PATH="$ROOT/targets"
export CARGOFLAGS=
export CFLAGS="-fno-stack-protector -U_FORTIFY_SOURCE"
TARGET=x86_64-unknown-redox
export CARGOFLAGS=--verbose
export CFLAGS="-static -nostartfiles -nostdlib -nodefaultlibs \
-undef -imacros $ROOT/libc-artifacts/define.h \
-isystem $ROOT/libc-artifacts/usr/include \
-L $ROOT/libc-artifacts/usr/lib \
$ROOT/libc-artifacts/usr/lib/crt0.o -lm -lc -lgcc \
-fno-stack-protector -U_FORTIFY_SOURCE"
export CARGO_BUILD_RUSTFLAGS="--verbose -Z print-link-args -C linker=gcc -C link-args=\"\$CFLAGS\""
export TARGET=x86_64-unknown-redox
REPO="$ROOT/repo/$TARGET"
set -e
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment