From 3053bfd431b69280c27f819c5c30f3d223f1258d Mon Sep 17 00:00:00 2001 From: Bin Jin Date: Fri, 17 Mar 2017 00:25:17 +0800 Subject: add flag for static build --- nara.cabal | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'nara.cabal') 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 , a fast, modern and secure VPN based on 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: -- cgit v1.2.3-59-g8ed1b