facebook / buck2

Build system, successor to Buck
https://buck2.build/
Apache License 2.0
3.38k stars 200 forks source link

haskell_library fails on MacOS #535

Closed aherrmann closed 4 months ago

aherrmann commented 5 months ago

Trying to build a haskell_library target with Buck2 on MacOS fails with a linker error of the form

ld: unknown option: -soname

The reason seems to be that platform specific properties are currently hard-coded to Linux values in the Haskell rules, e.g. the -soname flag. For reference, the cxx toolchain distinguishes such flags by linker type.