aboutsummaryrefslogtreecommitdiffstats
path: root/nara.cabal
diff options
context:
space:
mode:
authorBin Jin <bjin@ctrl-d.org>2017-03-17 00:25:17 +0800
committerBin Jin <bjin@ctrl-d.org>2017-03-17 00:25:17 +0800
commit3053bfd431b69280c27f819c5c30f3d223f1258d (patch)
treea6bd5f22334ff125b2947d9e64e83af3185e9c60 /nara.cabal
parentremove STM packet queue (diff)
downloadwireguard-hs-3053bfd431b69280c27f819c5c30f3d223f1258d.tar.xz
wireguard-hs-3053bfd431b69280c27f819c5c30f3d223f1258d.zip
add flag for static build
Diffstat (limited to 'nara.cabal')
-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: