Using MinGW+MSYS to create DLL

This commit is contained in:
Przemyslaw Skibinski 2016-11-10 18:30:59 +01:00
parent 72a4a84df7
commit 52251d9709
2 changed files with 18 additions and 2 deletions

View File

@ -51,7 +51,11 @@ matrix:
- env: Ubu=14.04 Cmd='make staticAnalyze' COMPILER=clang
dist: trusty
sudo: required
addons:
apt:
packages:
- clang
- env: Ubu=14.04 Cmd='make platformTest CC=arm-linux-gnueabi-gcc QEMU_SYS=qemu-arm-static && make platformTest CC=aarch64-linux-gnu-gcc QEMU_SYS=qemu-aarch64-static' COMPILER=arm-linux-gnueabi-gcc
dist: trusty
sudo: required

View File

@ -19,7 +19,7 @@ The variant still depends on regular `lz4` source files.
In particular, the decompression is still provided by `lz4.c`.
#### Compatibiliy issues
#### Compatibility issues
In order to produce files or streams compatible with `lz4` command line utility,
it's necessary to encode lz4-compressed blocks using the [official interoperable frame format].
@ -38,6 +38,18 @@ It contains definitions which are not guaranteed to remain stable within future
It must be used with static linking ***only***.
#### Using MinGW+MSYS to create DLL
DLL can be created using MinGW+MSYS with the "make liblz4" command.
This command creates "liblz4.dll" and the import library "liblz4.dll.a".
To compile a project the import library has to be added to linking options.
It means that if a project that uses LZ4 consists of a single test-dll.c
file it should be compiled with "liblz4.dll.a". For example:
```
gcc $CFLAGS test-dll.c -o test-dll liblz4.dll.a
```
#### Miscellaneous
Other files present in the directory are not source code. There are :