Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
lz4 for DOS/djgpp
This file details on how to compile lz4.exe, and liblz4.a for use on DOS/djgpp using Andrew Wu's build-djgpp cross compilers (GH, Binaries) on OSX, Linux.
Setup
- Download a djgpp tarball binaries for your platform.
- Extract and install it (
tar jxvf djgpp-linux64-gcc492.tar.bz2). Note the path. We'll assume/home/user/djgpp. - Add the
binfolder to yourPATH. In bash, doexport PATH=/home/user/djgpp/bin:$PATH. - The
Makefileincontrib/djgpp/sets upCC,AR,LDfor you. So,CC=i586-pc-msdosdjgpp-gcc,AR=i586-pc-msdosdjgpp-ar,LD=i586-pc-msdosdjgpp-gcc.
Building LZ4 for DOS
In the base dir of lz4 and with contrib/djgpp/Makefile, try:
Try:
make -f contrib/djgpp/Makefilemake -f contrib/djgpp/Makefile liblz4.amake -f contrib/djgpp/Makefile lz4.exemake -f contrib/djgpp/Makefile DESTDIR=/home/user/dos install, however it doesn't make much sense on a *nix.- You can also do
make -f contrib/djgpp/Makefile uninstall