summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
authorVekhir <vekhir@noreply.codeberg.org>2024-01-31 22:02:11 +0000
committerVekhir <vekhir@noreply.codeberg.org>2024-01-31 22:02:11 +0000
commit7dd2d17a0c22c096bf5a7969a686545248f8ca46 (patch)
tree108f52a531a3c0ff8275f68d02a89e8c67dad02d /xmobar.cabal
parent431ef31d58b74e401cf182493bac098c78ae467c (diff)
downloadxmobar-7dd2d17a0c22c096bf5a7969a686545248f8ca46.tar.gz
xmobar-7dd2d17a0c22c096bf5a7969a686545248f8ca46.tar.bz2
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.
Diffstat (limited to 'xmobar.cabal')
-rw-r--r--xmobar.cabal7
1 files changed, 7 insertions, 0 deletions
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