Fix ld: error: undefined symbol: ceil on FreeBSD

When building on FreeBSD the compilation errors because it cannot find the math library. This single line links it.
This commit is contained in:
Thomas Maroschik
2024-12-10 15:11:37 +01:00
committed by GitHub
parent 15dfee66c2
commit 0e53f7d8db

View File

@@ -3,6 +3,7 @@ package vips
/*
#cgo pkg-config: vips
#cgo CFLAGS: -O3
#cgo LDFLAGS: -lm
#include "vips.h"
*/
import "C"