$ mv bin/vors-* $PATH/bin
@end example
-I heard that some systems can not create statically linked binaries.
-@url{download/no-static.patch, Here} is the patch that may help.
+I heard that some proprietary systems can not create statically linked
+binaries. You can use @command{mk-non-static} script to remove the need
+of static linking.
@example
$ cd vors-@value{VERSION}
-$ patch -p1 <no-static.patch
+$ ./mk-non-static
+$ ./build
@end example
@include download.texi
+++ /dev/null
-diff -urN vors-2.3.0/vendor/go.stargrave.org/opus/v2/decoder.go vors-2.3.0-no-static/vendor/go.stargrave.org/opus/v2/decoder.go
---- vors-2.3.0/vendor/go.stargrave.org/opus/v2/decoder.go 2024-04-16 22:44:09.000000000 +0300
-+++ vors-2.3.0-no-static/vendor/go.stargrave.org/opus/v2/decoder.go 2024-04-19 20:49:51.571957000 +0300
-@@ -10,8 +10,7 @@
- )
-
- /*
--#cgo pkg-config: --static opus
--#cgo LDFLAGS: -static
-+#cgo pkg-config: opus
- #include <opus.h>
-
- int
-diff -urN vors-2.3.0/vendor/go.stargrave.org/opus/v2/encoder.go vors-2.3.0-no-static/vendor/go.stargrave.org/opus/v2/encoder.go
---- vors-2.3.0/vendor/go.stargrave.org/opus/v2/encoder.go 2024-04-16 22:44:09.000000000 +0300
-+++ vors-2.3.0-no-static/vendor/go.stargrave.org/opus/v2/encoder.go 2024-04-19 20:50:00.849825000 +0300
-@@ -10,8 +10,7 @@
- )
-
- /*
--#cgo pkg-config: --static opus
--#cgo LDFLAGS: -static
-+#cgo pkg-config: opus
- #include <opus.h>
-
- int
-diff -urN vors-2.3.0/vendor/go.stargrave.org/opus/v2/errors.go vors-2.3.0-no-static/vendor/go.stargrave.org/opus/v2/errors.go
---- vors-2.3.0/vendor/go.stargrave.org/opus/v2/errors.go 2024-04-16 22:44:09.000000000 +0300
-+++ vors-2.3.0-no-static/vendor/go.stargrave.org/opus/v2/errors.go 2024-04-19 20:50:12.450136000 +0300
-@@ -9,8 +9,7 @@
- )
-
- /*
--#cgo pkg-config: --static opus
--#cgo LDFLAGS: -static
-+#cgo pkg-config: opus
- #include <opus.h>
- */
- import "C"
-diff -urN vors-2.3.0/vendor/go.stargrave.org/opus/v2/opus.go vors-2.3.0-no-static/vendor/go.stargrave.org/opus/v2/opus.go
---- vors-2.3.0/vendor/go.stargrave.org/opus/v2/opus.go 2024-04-16 22:44:09.000000000 +0300
-+++ vors-2.3.0-no-static/vendor/go.stargrave.org/opus/v2/opus.go 2024-04-19 20:50:06.099273000 +0300
-@@ -6,8 +6,7 @@
-
- /*
- // Link opus using pkg-config.
--#cgo pkg-config: --static opus
--#cgo LDFLAGS: -static
-+#cgo pkg-config: opus
- #include <opus.h>
- */
- import "C"
rm -rf .git makedist
find . -type d -exec chmod 755 {} +
find . -type f -exec chmod 644 {} +
-chmod +x build
+chmod +x build mk-non-static
cd ..
tar cvf vors-"$release".tar --uid=0 --gid=0 --numeric-owner vors-"$release"