Skip to content

Commit

Permalink
more static build options
Browse files Browse the repository at this point in the history
  • Loading branch information
redthing1 committed Jul 7, 2023
1 parent 94a589a commit 3a59c4c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ configuration "optim" {
dflags "-Os" "--flto=thin"
postBuildCommands "strip -s soop2" platform="linux"
}
configuration "static_bin" {
configuration "static" {
targetType "executable"
dflags "-static"
}
configuration "optim_static" {
targetType "executable"
dflags "-Os -static" "--flto=thin"
postBuildCommands "strip -s soop2" platform="linux"
}

0 comments on commit 3a59c4c

Please sign in to comment.