Преглед изворни кода

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.
Thomas Maroschik пре 5 месеци
родитељ
комит
0e53f7d8db
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      vips/vips.go

+ 1 - 0
vips/vips.go

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