mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-08 13:42:27 +05:30
Crystal: Force using PCRE (legacy) for cross-compilation
PCRE2 support was added in Crystal v1.7.0, and used by default in Crystal v1.8.0. As we don't want to have to guess what version of the PCRE was used on the build host, force the use of the legacy version until we drop support for older versions of Crystal.
This commit is contained in:
parent
ea176aba8d
commit
e2866b4672
10
Makefile
10
Makefile
@ -68,25 +68,25 @@ run: invidious
|
||||
# - armhf (arm-linux-gnueabihf)
|
||||
|
||||
invidious-cross-amd64-glibc:
|
||||
crystal build src/invidious.cr $(FLAGS) -Dskip_videojs_download \
|
||||
crystal build src/invidious.cr $(FLAGS) -Duse_pcre -Dskip_videojs_download \
|
||||
--cross-compile --target='x86_64-linux-gnu' -o invidious-amd64-glibc
|
||||
|
||||
invidious-cross-amd64-musl:
|
||||
crystal build src/invidious.cr $(FLAGS) -Dskip_videojs_download \
|
||||
crystal build src/invidious.cr $(FLAGS) -Duse_pcre -Dskip_videojs_download \
|
||||
--cross-compile --target='x86_64-linux-musl' -o invidious-amd64-musl
|
||||
|
||||
|
||||
invidious-cross-arm64-glibc:
|
||||
crystal build src/invidious.cr $(FLAGS) -Dskip_videojs_download \
|
||||
crystal build src/invidious.cr $(FLAGS) -Duse_pcre -Dskip_videojs_download \
|
||||
--cross-compile --target='aarch64-linux-gnu' -o invidious-arm64-glibc
|
||||
|
||||
invidious-cross-arm64-musl:
|
||||
crystal build src/invidious.cr $(FLAGS) -Dskip_videojs_download \
|
||||
crystal build src/invidious.cr $(FLAGS) -Duse_pcre -Dskip_videojs_download \
|
||||
--cross-compile --target='aarch64-linux-musl' -o invidious-arm64-musl
|
||||
|
||||
|
||||
invidious-cross-armhf:
|
||||
crystal build src/invidious.cr $(FLAGS) -Dskip_videojs_download \
|
||||
crystal build src/invidious.cr $(FLAGS) -Duse_pcre -Dskip_videojs_download \
|
||||
--cross-compile --target='arm-linux-gnueabihf' -o invidious-armhf
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
FROM alpine:3.18 AS builder
|
||||
|
||||
RUN apk add --no-cache gcc make yaml-static libxml2-static sqlite-static zlib-static \
|
||||
xz-static openssl-libs-static openssl-dev pcre-dev gc-dev libevent-static musl-dev
|
||||
xz-static openssl-libs-static openssl-dev pcre-dev pcre2-dev gc-dev libevent-static musl-dev
|
||||
|
||||
ARG release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user