Skip to content

fix(pdf): update linker flags for PNG - #13

Merged
ralsina merged 1 commit into
ralsina:mainfrom
kojix2:macos02
Sep 18, 2026
Merged

ralsina merged 1 commit into
ralsina:mainfrom
kojix2:macos02

Conversation

@kojix2

@kojix2 kojix2 commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Hello.
On my macOS system, it fails to find Homebrew's libpng.

❯ shards build --release
Dependencies are satisfied
Building: markterm
Building: markmark
Building: markpdf
Error target markpdf failed to compile:
ld: warning: ignoring duplicate libraries: '-llitepdf', '-lz'
ld: library 'png' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I had to make this change.
I’m not sure if this fix works on all platforms, so I’m just offering it as a suggestion.
Thank you.

@ralsina

ralsina commented Sep 18, 2026

Copy link
Copy Markdown
Owner

Should be fine.

@ralsina
ralsina merged commit c84ef98 into ralsina:main Sep 18, 2026
2 checks passed
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