From 52251d970956c992801b6b7434fe092751f7731e Mon Sep 17 00:00:00 2001 From: Przemyslaw Skibinski Date: Thu, 10 Nov 2016 18:30:59 +0100 Subject: Using MinGW+MSYS to create DLL --- .travis.yml | 6 +++++- lib/README.md | 14 +++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e92b7fe..4bef528 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/lib/README.md b/lib/README.md index e4649aa..051ef54 100644 --- a/lib/README.md +++ b/lib/README.md @@ -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 : -- cgit v0.12