From a596e655dac5c71757846b320e8aecfaa7661b67 Mon Sep 17 00:00:00 2001 From: "7thyearold@339ab97e59cee5c85e14df94a5059f251a143e65" <7thyearold@web> Date: Mon, 30 May 2022 09:51:11 +0000 Subject: [PATCH] --- doc/bugs/FreeBSD_patches.mdwn | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/bugs/FreeBSD_patches.mdwn diff --git a/doc/bugs/FreeBSD_patches.mdwn b/doc/bugs/FreeBSD_patches.mdwn new file mode 100644 index 0000000000..b83ec8d379 --- /dev/null +++ b/doc/bugs/FreeBSD_patches.mdwn @@ -0,0 +1,23 @@ +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