Fix Illumos build - #2067 (#2069)

Build currently fails on Illumos with error `Undefined symbol sendfile`. Fix it by linking `sendfile` explicitly.
This commit is contained in:
Corrado Primier 2023-01-19 17:52:01 +00:00 committed by Joe Stump
parent 1c93c1214a
commit 9a697ecaba
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -2,7 +2,8 @@ package taglib
/*
#cgo pkg-config: taglib
#cgo LDFLAGS: -lstdc++
#cgo !illumos LDFLAGS: -lstdc++
#cgo illumos LDFLAGS: -lstdc++ -lsendfile
#cgo linux darwin CXXFLAGS: -std=c++11
#include <stdio.h>
#include <stdlib.h>