mirror of
https://github.com/NginxProxyManager/docker-nginx-full.git
synced 2026-05-18 07:40:36 +00:00
Switch brotli build for non-64 arch
This commit is contained in:
@@ -8,6 +8,12 @@ RESET='\E[0m'
|
||||
|
||||
echo -e "${BLUE}❯ ${CYAN}Building brotli ${YELLOW}${LUA_VERSION}...${RESET}"
|
||||
|
||||
# Determine the correct binary file for the architecture given
|
||||
M64="-m64"
|
||||
if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then
|
||||
M64=
|
||||
fi
|
||||
|
||||
cd /tmp
|
||||
git clone --recurse-submodules -j8 "https://github.com/google/ngx_brotli"
|
||||
cd /tmp/ngx_brotli/deps/brotli
|
||||
@@ -15,7 +21,7 @@ cd /tmp/ngx_brotli/deps/brotli
|
||||
mkdir -p /tmp/ngx_brotli/deps/brotli/out
|
||||
cd /tmp/ngx_brotli/deps/brotli/out
|
||||
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_CXX_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_INSTALL_PREFIX=./installed ..
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS="-Ofast $M64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_CXX_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_INSTALL_PREFIX=./installed ..
|
||||
cmake --build . --config Release --target brotlienc
|
||||
|
||||
echo -e "${BLUE}❯ ${GREEN}brotli build completed${RESET}"
|
||||
|
||||
Reference in New Issue
Block a user