fix: brotli prefix

This commit is contained in:
Lance R. Vick 2024-08-26 04:10:17 -07:00
parent bd7ce59caa
commit c7f2a0977a
No known key found for this signature in database
GPG key ID: 8E47A1EC35A1551D
2 changed files with 5 additions and 3 deletions

View file

@ -23,13 +23,13 @@ RUN --network=none <<-EOF
set -eux
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr/lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=OFF
cmake --build build
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr/lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON
cmake --build build
EOF
@ -39,8 +39,9 @@ RUN <<-EOF
set -eux
DESTDIR=/rootfs cmake --install build
for file in common dec enc; do
install -D -m 755 build/libbrotli$file.a /rootfs/usr/lib/
install -D -m 755 build/libbrotli$file.a /rootfs/usr/lib64
done
mv /rootfs/usr/lib64 /rootfs/usr/lib
EOF
FROM stagex/filesystem AS package

View file

@ -52,6 +52,7 @@ RUN --network=none <<-EOF
--shared-brotli \
--without-npm \
--without-corepack \
--with-intl=system-icu \
--with-icu-default-data-dir=$(icu-config --icudatadir) \
--openssl-use-def-ca-store
make BUILDTYPE=Release