Skip to content

Commit

Permalink
Make it so that normal build can happen on alpine
Browse files Browse the repository at this point in the history
Signed-off-by: Paul-Elliot <peada@free.fr>
  • Loading branch information
panglesd committed Jun 3, 2024
1 parent 4af9544 commit 2bb5663
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ let () =
print_endline
@@
match Sys.argv.(1) with
| "aarch64-unknown-linux-musl" | "x86_64-pc-linux-musl" ->
"(-cclib -static -cclib -no-pie)"
| "aarch64-unknown-linux-musl" | "x86_64-pc-linux-musl" -> "()"
| _ -> "()"
2 changes: 2 additions & 0 deletions release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ archive_name=$OUTPUT/slipshow-$TARGETOS-$TARGETARCH.tar

dune subst

sed -i 's/"()"/"(-cclib -static -cclib -no-pie)"/g' compiler/src/bin/static-linking-flags/static_linking_flags.ml

dune build -p slipshow
# Executables are symlinks, follow with -h.
tar hcf "$archive_name" -C _build/install/default bin/slipshow

0 comments on commit 2bb5663

Please sign in to comment.