gtk2hs / svgcairo

Other
4 stars 11 forks source link

Correct cpp-options for both linux/darwin #12

Open dalpd opened 3 years ago

dalpd commented 3 years ago

This builds on https://github.com/gtk2hs/svgcairo/pull/10/commits/df6c6172b52ecbd32007529d86ba9913ba001306.

Patching svgcairo on nixpkgs with this commit fixed the linux build but removing one of the flags broke it for darwin. I don't think it's a nixpkgs issue and after some investigation I found similar issues on Github. It seems like we need to retain the -D__attribute__(A)= flag, so this adds it back with a if os(darwin) conditonal.