mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
This new script is an alternative to the `cosmocc` command. It's still a work in progress. It abstracts all the gory details of building separate copies of your executable and then running the apelink.com program.
14 lines
369 B
Bash
Executable file
14 lines
369 B
Bash
Executable file
#!/bin/sh
|
|
|
|
COSMOS=${COSMOS:-/opt/cosmos}
|
|
|
|
for arch in "" .aarch64/; do
|
|
if [ ! -d "$COSMOS/lib/${arch}" ]; then
|
|
mkdir -p "$COSMOS/lib/${arch}"
|
|
fi
|
|
for lib in c dl gcc_s m pthread resolv rt dl z stdc++; do
|
|
if [ ! -f "$COSMOS/lib/${arch}lib${lib}.a" ]; then
|
|
printf '\041\074\141\162\143\150\076\012' >"$COSMOS/lib/${arch}lib${lib}.a"
|
|
fi
|
|
done
|
|
done
|