mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 09:17:53 +00:00
Cosmopolitan 0.3
This commit is contained in:
parent
7dc8973567
commit
7abca1531f
2 changed files with 6 additions and 6 deletions
10
README.md
10
README.md
|
@ -22,8 +22,8 @@ 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-0.3.zip
|
||||||
unzip cosmopolitan.zip
|
unzip cosmopolitan-amalgamation-0.3.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 \
|
-fno-omit-frame-pointer -pg -mnop-mcount \
|
||||||
|
@ -53,9 +53,9 @@ universal binaries possible.
|
||||||
Cosmopolitan can also be compiled from source on any Linux distro.
|
Cosmopolitan can also be compiled from source on any Linux distro.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
wget https://justine.lol/cosmopolitan/cosmopolitan-0.2.tar.gz
|
wget https://justine.lol/cosmopolitan/cosmopolitan-0.3.tar.gz
|
||||||
tar xf cosmopolitan-0.2.tar.gz # see releases page
|
tar xf cosmopolitan-0.3.tar.gz # see releases page
|
||||||
cd cosmopolitan-0.2
|
cd cosmopolitan
|
||||||
make -j16
|
make -j16
|
||||||
o//examples/hello.com
|
o//examples/hello.com
|
||||||
find o -name \*.com | xargs ls -rShal | less
|
find o -name \*.com | xargs ls -rShal | less
|
||||||
|
|
|
@ -564,7 +564,7 @@ static void ProgramPort(long x) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SetDefaults(void) {
|
static void SetDefaults(void) {
|
||||||
ProgramBrand("redbean/0.2");
|
ProgramBrand("redbean/0.3");
|
||||||
ProgramCache(-1);
|
ProgramCache(-1);
|
||||||
ProgramPort(DEFAULT_PORT);
|
ProgramPort(DEFAULT_PORT);
|
||||||
serveraddr.sin_family = AF_INET;
|
serveraddr.sin_family = AF_INET;
|
||||||
|
|
Loading…
Reference in a new issue