From 7dd2d17a0c22c096bf5a7969a686545248f8ca46 Mon Sep 17 00:00:00 2001 From: Vekhir Date: Wed, 31 Jan 2024 22:02:11 +0000 Subject: Add `with_shared` flag to build using shared libraries Adds the `with_shared` flag, which is off by default. Setting the new flag enables building with shared libraries. By default, `xmobar` is built with static linking. --- xmobar.cabal | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xmobar.cabal b/xmobar.cabal index 85001c4..fdc7653 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -84,6 +84,10 @@ flag with_rtsopts description: Use -with-rtsopts=-V0 to reduce wakeups. default: True +flag with_shared + description: Use shared libraries. Required when dependencies are built as shared libraries. + default: False + flag with_weather description: Enable weather plugin. default: True @@ -232,6 +236,9 @@ library if flag(with_rtsopts) cpp-options: -DRTSOPTS + if flag(with_shared) + cpp-options: -DSHARED_LIBRARIES + if flag(with_xrender) build-depends: X11-xft >= 0.2 other-modules: Xmobar.X11.XRender -- cgit v1.2.3