mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 05:14:18 +08:00
Fix packaging in MacOS
Setting CC= isn't enough in MacOS, AR and RANLIB also need replacing. Without this, bits are compiled for redox instead of the host leading to linker target mismatches.
This commit is contained in:
parent
033e32dc6d
commit
9eebc15776
6
cook.sh
6
cook.sh
@ -23,15 +23,15 @@ fi
|
||||
if [ ! "$(uname -s)" = "Redox" ]
|
||||
then
|
||||
function docgen {
|
||||
CC=cc cargo run --release --manifest-path "$ROOT/docgen/Cargo.toml" --bin docgen -- "$@"
|
||||
CC=cc AR=ar RANLIB=ranlib cargo run --release --manifest-path "$ROOT/docgen/Cargo.toml" --bin docgen -- "$@"
|
||||
}
|
||||
|
||||
function pkg {
|
||||
CC=cc cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- "$@"
|
||||
CC=cc AR=ar RANLIB=ranlib cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- "$@"
|
||||
}
|
||||
|
||||
function pkgar {
|
||||
CC=cc cargo run --release --manifest-path "$ROOT/pkgar/Cargo.toml" --bin pkgar -- "$@"
|
||||
CC=cc AR=ar RANLIB=ranlib cargo run --release --manifest-path "$ROOT/pkgar/Cargo.toml" --bin pkgar -- "$@"
|
||||
}
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user