Skip to content

Correct cpp-options for both linux/darwin#12

Open
dalpd wants to merge 1 commit intogtk2hs:masterfrom
dalpd:fix-svg-cairo
Open

Correct cpp-options for both linux/darwin#12
dalpd wants to merge 1 commit intogtk2hs:masterfrom
dalpd:fix-svg-cairo

Conversation

@dalpd
Copy link
Copy Markdown

@dalpd dalpd commented Oct 22, 2021

This builds on df6c617.

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.

This builds on
gtk2hs@df6c617.
Patching svgcairo on nixpkgs with this commit fixed the linux build but removing
one of the flags broke it for darwin.

This adds a conditional for darwin and adds the `-D__attribute__(A)=` flag back.
@ulidtko
Copy link
Copy Markdown

ulidtko commented Mar 4, 2025

Ref #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants