diff --git a/git-annex.cabal b/git-annex.cabal index 0a50878eb..63d79bde9 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -396,8 +396,7 @@ Executable git-annex GHC-Options: -O0
-- Avoid linking with unused dynamic libaries. - -- (Only tested on Linux). - if os(Linux) + if os(Linux) || os(freebsd) GHC-Options: -optl-Wl,--as-needed
if (os(windows)) @@ -517,7 +516,7 @@ Executable git-annex Other-Modules: Utility.DirWatcher.Kqueue
if flag(Dbus) - if (os(linux)) + if os(linux) || os(freebsd) Build-Depends: dbus (>= 0.10.7), fdo-notify (>= 0.3) CPP-Options: -DWITH_DBUS -DWITH_DESKTOP_NOTIFY -DWITH_DBUS_NOTIFICATIONS Other-Modules: Utility.DBus
Have you actually verified that git-annex on freebsd, when compiled with dbus support, is able to use it for anything? It expects to be speaking to udisks2 to get notifications of things being mounted, and to network-manager or wicd or systemd-networkd to get noticiations of networking changes. I don't know if any of those are used on freebsd.
I have applied the --as-needed patch
In general, when sending patches, you really need to provide an explanation of why the change is the right change to make..