enable --as-needed on freebsd

based on doc/bugs/FreeBSD_patches.mdwn which indicates it works, though
sadly without anything more than a patch.

If this breaks anything it will be reverted.
This commit is contained in:
Joey Hess 2022-05-31 13:03:39 -04:00
parent 652e0d9f94
commit bea665a4d7
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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))