mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Release Cosmopolitan 2.0
This commit is contained in:
parent
fcbf64b906
commit
1ce101c5a5
1 changed files with 3 additions and 3 deletions
|
@ -23,12 +23,12 @@ If you're doing your development work on Linux or BSD then you need just
|
||||||
five files to get started. Here's what you do on Linux:
|
five files to get started. Here's what you do on Linux:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
wget https://justine.lol/cosmopolitan/cosmopolitan.zip
|
wget https://justine.lol/cosmopolitan/cosmopolitan-amalgamation-2.0.zip
|
||||||
unzip cosmopolitan.zip
|
unzip cosmopolitan-amalgamation-2.0.zip
|
||||||
printf 'main() { printf("hello world\\n"); }\n' >hello.c
|
printf 'main() { printf("hello world\\n"); }\n' >hello.c
|
||||||
gcc -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone \
|
gcc -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone \
|
||||||
-fno-omit-frame-pointer -pg -mnop-mcount -mno-tls-direct-seg-refs \
|
-fno-omit-frame-pointer -pg -mnop-mcount -mno-tls-direct-seg-refs \
|
||||||
-o hello.com.dbg hello.c -fuse-ld=bfd -Wl,-T,ape.lds \
|
-o hello.com.dbg hello.c -fuse-ld=bfd -Wl,-T,ape.lds -Wl,--gc-sections \
|
||||||
-include cosmopolitan.h crt.o ape-no-modify-self.o cosmopolitan.a
|
-include cosmopolitan.h crt.o ape-no-modify-self.o cosmopolitan.a
|
||||||
objcopy -S -O binary hello.com.dbg hello.com
|
objcopy -S -O binary hello.com.dbg hello.com
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue