diff options
author | Cem Keylan <cem@ckyln.com> | 2023-10-13 11:53:21 +0200 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2023-10-13 11:53:21 +0200 |
commit | f63856754e6e78165e4e091eebd514b288b19d77 (patch) | |
tree | 0b2aba6652036419d548b09a428c97505bd5902a /extra/brotli | |
parent | 134d6203921abbde3840368e3ab4a4c4de450cf9 (diff) | |
download | repository-f63856754e6e78165e4e091eebd514b288b19d77.tar.gz |
brotli: add static libraries, and compile the binary statically
Diffstat (limited to 'extra/brotli')
-rwxr-xr-x | extra/brotli/build | 24 | ||||
-rw-r--r-- | extra/brotli/version | 2 |
2 files changed, 17 insertions, 9 deletions
diff --git a/extra/brotli/build b/extra/brotli/build index d44a1f51..3d8522d4 100755 --- a/extra/brotli/build +++ b/extra/brotli/build @@ -2,11 +2,19 @@ export DESTDIR="$1" -cmake -B build \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DBUILD_SHARED_LIBS=True - -cmake --build build -cmake --install build +shared() { + LIBS=$1; shift + cmake -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF \ + -DBUILD_SHARED_LIBS="$LIBS" \ + "$@" + + cmake --build build + cmake --install build +} + +shared ON +shared OFF -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS -static" diff --git a/extra/brotli/version b/extra/brotli/version index 7281bb52..cc57f911 100644 --- a/extra/brotli/version +++ b/extra/brotli/version @@ -1 +1 @@ -1.1.0 1 +1.1.0 2 |