Skip to content

fix compilation problems on FreeBSD - #959

Open
Florian-Laluque wants to merge 1 commit into
mickael-kerjean:masterfrom
Florian-Laluque:master
Open

fix compilation problems on FreeBSD#959
Florian-Laluque wants to merge 1 commit into
mickael-kerjean:masterfrom
Florian-Laluque:master

Conversation

@Florian-Laluque

@Florian-Laluque Florian-Laluque commented Mar 30, 2026

Copy link
Copy Markdown

This PR resoves the issue #954

It seems that the libpthread is not needed anymore in the LDFLAGS for plg_image_c/image_png plugin, it breaks at compilation and I had success removing it.

I also had to add freebsd as a target in the compress package.

For info, you still need to set up the CFLAGS env vars to copile on Freebsd. It is need for google's brotli package.

export CGO_CFLAGS="-I/usr/local/include"
export CGO_LDFLAGS="-L/usr/local/lib -L/usr/lib -L/lib"

Tested in freebsd15 and it works. (I also try uploading a png file and the thumbnail is ok)

The changes are made to only target freebsd, this should have no impact.

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.

1 participant