-
Notifications
You must be signed in to change notification settings - Fork 0
/
cgo-ldflags.patch
70 lines (70 loc) · 3.65 KB
/
cgo-ldflags.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
diff --git server/plugin/plg_image_c/image_gif.go server/plugin/plg_image_c/image_gif.go
index 6b20e50b..2248c9be 100644
--- server/plugin/plg_image_c/image_gif.go
+++ server/plugin/plg_image_c/image_gif.go
@@ -4 +4 @@ package plg_image_c
-// #cgo LDFLAGS: -l:libgif.a -l:libwebp.a
+// #cgo LDFLAGS: -lgif -lwebp
diff --git server/plugin/plg_image_c/image_jpeg_freebsd.go server/plugin/plg_image_c/image_jpeg_freebsd.go
index 14c6879b..f86f1bae 100644
--- server/plugin/plg_image_c/image_jpeg_freebsd.go
+++ server/plugin/plg_image_c/image_jpeg_freebsd.go
@@ -4 +4 @@ package plg_image_c
-// #cgo LDFLAGS: -L /usr/local/lib -L /usr/lib -L /lib -l:libjpeg.a
+// #cgo LDFLAGS: -L /usr/local/lib -L /usr/lib -L /lib -ljpeg
diff --git server/plugin/plg_image_c/image_jpeg_linux.go server/plugin/plg_image_c/image_jpeg_linux.go
index 235e4139..53d187f1 100644
--- server/plugin/plg_image_c/image_jpeg_linux.go
+++ server/plugin/plg_image_c/image_jpeg_linux.go
@@ -4 +4 @@ package plg_image_c
-// #cgo LDFLAGS: -l:libjpeg.a
+// #cgo LDFLAGS: -ljpeg
diff --git server/plugin/plg_image_c/image_png_freebsd.go server/plugin/plg_image_c/image_png_freebsd.go
index 22384c87..aa7105af 100644
--- server/plugin/plg_image_c/image_png_freebsd.go
+++ server/plugin/plg_image_c/image_png_freebsd.go
@@ -4 +4 @@ package plg_image_c
-// #cgo LDFLAGS: -L /usr/local/lib -L /usr/lib -L /lib -l:libsharpyuv.a -l:libpng.a -l:libz.a -l:libwebp.a -l:libpthread.a -fopenmp
+// #cgo LDFLAGS: -L /usr/local/lib -L /usr/lib -L /lib -lsharpyuv -lpng -lz -lwebp -lpthread -fopenmp
diff --git server/plugin/plg_image_c/image_png_linux.go server/plugin/plg_image_c/image_png_linux.go
index e87acdaf..a2d43b2b 100644
--- server/plugin/plg_image_c/image_png_linux.go
+++ server/plugin/plg_image_c/image_png_linux.go
@@ -4 +4 @@ package plg_image_c
-// #cgo LDFLAGS: -l:libpng.a -l:libz.a -l:libwebp.a -fopenmp
+// #cgo LDFLAGS: -lpng -lz -lwebp -fopenmp
diff --git server/plugin/plg_image_c/image_psd.go server/plugin/plg_image_c/image_psd.go
index c9786a1a..82f28eaa 100644
--- server/plugin/plg_image_c/image_psd.go
+++ server/plugin/plg_image_c/image_psd.go
@@ -4 +4 @@ package plg_image_c
-// #cgo LDFLAGS: -l:libwebp.a
+// #cgo LDFLAGS: -lwebp
diff --git server/plugin/plg_image_c/image_raw_freebsd.go server/plugin/plg_image_c/image_raw_freebsd.go
index d95a667d..6368f7d1 100644
--- server/plugin/plg_image_c/image_raw_freebsd.go
+++ server/plugin/plg_image_c/image_raw_freebsd.go
@@ -4 +4 @@ package plg_image_c
-// #cgo LDFLAGS: -L /usr/local/lib -L /usr/lib -L /lib -l:libyuv.a -l:libjpeg.a -l:libraw.a -fopenmp -l:libc++.a -llcms2 -lm
+// #cgo LDFLAGS: -L /usr/local/lib -L /usr/lib -L /lib -lyuv -ljpeg -lraw -fopenmp -l:libc++.a -llcms2 -lm
diff --git server/plugin/plg_image_c/image_raw_linux.go server/plugin/plg_image_c/image_raw_linux.go
index e9a0774f..36f1eb7f 100644
--- server/plugin/plg_image_c/image_raw_linux.go
+++ server/plugin/plg_image_c/image_raw_linux.go
@@ -4 +4 @@ package plg_image_c
-// #cgo LDFLAGS: -l:libjpeg.a -l:libraw.a -fopenmp -l:libstdc++.a -llcms2 -lm
+// #cgo LDFLAGS: -ljpeg -lraw -fopenmp -l:libstdc++.a -llcms2 -lm
diff --git server/plugin/plg_image_c/image_tiff.go server/plugin/plg_image_c/image_tiff.go
index 0fc770e8..284e1f00 100644
--- server/plugin/plg_image_c/image_tiff.go
+++ server/plugin/plg_image_c/image_tiff.go
@@ -4 +4 @@ package plg_image_c
-// #cgo LDFLAGS: -l:libwebp.a -ltiff
+// #cgo LDFLAGS: -lwebp -ltiff
diff --git server/plugin/plg_image_c/image_webp.go server/plugin/plg_image_c/image_webp.go
index 631f973b..e09755fc 100644
--- server/plugin/plg_image_c/image_webp.go
+++ server/plugin/plg_image_c/image_webp.go
@@ -4 +4 @@ package plg_image_c
-// #cgo LDFLAGS: -l:libwebp.a
+// #cgo LDFLAGS: -lwebp