pixiv / go-libjpeg

An implementation of Go binding for libjpeg (or libjpeg-turbo).
BSD 3-Clause "New" or "Revised" License
157 stars 52 forks source link

Support pkg-config installs of libjpeg please? #64

Open whorfin opened 3 years ago

whorfin commented 3 years ago

You may wish to solve this a different way so i didn't do a PR, but simply adding this line right after the #cgo LDFLAGS in jpeg/jpeg.go allows modern systems with pkg-config setups to work; then setting PKG_CONFIG_PATH is enough to get even weird install locations to work

#cgo LDFLAGS: -ljpeg
#cgo pkg-config: libjpeg
edaniels commented 1 year ago

Given that this has not been responded to, we have forked this library over to https://github.com/viam-labs/go-libjpeg/tree/fork. It includes your request @whorfin