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:
parent
652e0d9f94
commit
bea665a4d7
1 changed files with 1 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue