mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 13:24:17 +08:00
Complicate CFLAGS
This commit is contained in:
parent
ebc2386e6f
commit
ec3df2cfab
12
cook.sh
12
cook.sh
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user