aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nara.cabal10
1 files changed, 10 insertions, 0 deletions
diff --git a/nara.cabal b/nara.cabal
index 038dd08..ef76d20 100644
--- a/nara.cabal
+++ b/nara.cabal
@@ -13,6 +13,12 @@ description:
nara is a userspace implementation of <https://www.wireguard.io WireGuard> ,
a fast, modern and secure VPN based on <https://noiseprotocol.org/ Noise> protocol.
+flag static
+ description:
+ enable static build
+ default:
+ False
+
executable nara
main-is:
Main.hs
@@ -70,6 +76,10 @@ executable nara
ghc-options:
-Wall -O2 -threaded
+ if flag(static)
+ ghc-options:
+ -optl-static
+
hs-source-dirs:
src
include-dirs: