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 GitHub
parent 8956f5e7fd
commit 0c27e7a43b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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>