Skip to content
Snippets Groups Projects
Commit 9eebc157 authored by Will Angenent's avatar Will Angenent
Browse files

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.
parent 033e32dc
No related branches found
No related tags found
No related merge requests found
...@@ -23,15 +23,15 @@ fi ...@@ -23,15 +23,15 @@ fi
if [ ! "$(uname -s)" = "Redox" ] if [ ! "$(uname -s)" = "Redox" ]
then then
function docgen { 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 { 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 { 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 fi
......
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