andrew-d / static-binaries

Various *nix tools built as statically-linked binaries
Other
3.1k stars 566 forks source link

add support for x86 socat #12

Closed bryfry closed 5 years ago

bryfry commented 7 years ago

git makes it look I did a lot because I created a copy of the files. Changes were actually:

$ diff x86/build.sh x86_64/build.sh
71c71
<     CC='/usr/local/musl/bin/musl-gcc -static -m32' ./Configure no-shared linux-generic32
---
>     CC='/usr/local/musl/bin/musl-gcc -static' ./Configure no-shared linux-x86_64
108c108
<         OUT_DIR=/output/`uname | tr 'A-Z' 'a-z'`/x86
---
>         OUT_DIR=/output/`uname | tr 'A-Z' 'a-z'`/`uname -m`
$ diff x86/Dockerfile x86_64/Dockerfile
1c1
< FROM 32bit/debian
---
> FROM debian:jessie

and the resulting socat binary