about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/teleport/rdpclient.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/teleport/rdpclient.patch')
-rw-r--r--nixpkgs/pkgs/servers/teleport/rdpclient.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/teleport/rdpclient.patch b/nixpkgs/pkgs/servers/teleport/rdpclient.patch
new file mode 100644
index 000000000000..4f35cd184ab5
--- /dev/null
+++ b/nixpkgs/pkgs/servers/teleport/rdpclient.patch
@@ -0,0 +1,22 @@
+diff --git a/lib/srv/desktop/rdp/rdpclient/client.go b/lib/srv/desktop/rdp/rdpclient/client.go
+index 4357d7aa1..7e21a0076 100644
+--- a/lib/srv/desktop/rdp/rdpclient/client.go
++++ b/lib/srv/desktop/rdp/rdpclient/client.go
+@@ -52,14 +52,9 @@ package rdpclient
+ 
+ /*
+ // Flags to include the static Rust library.
+-#cgo linux,386 LDFLAGS: -L${SRCDIR}/../../../../../target/i686-unknown-linux-gnu/release
+-#cgo linux,amd64 LDFLAGS: -L${SRCDIR}/../../../../../target/x86_64-unknown-linux-gnu/release
+-#cgo linux,arm LDFLAGS: -L${SRCDIR}/../../../../../target/arm-unknown-linux-gnueabihf/release
+-#cgo linux,arm64 LDFLAGS: -L${SRCDIR}/../../../../../target/aarch64-unknown-linux-gnu/release
+-#cgo linux LDFLAGS: -l:librdp_client.a -lpthread -ldl -lm
+-#cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/../../../../../target/x86_64-apple-darwin/release
+-#cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/../../../../../target/aarch64-apple-darwin/release
+-#cgo darwin LDFLAGS: -framework CoreFoundation -framework Security -lrdp_client -lpthread -ldl -lm
++#cgo LDFLAGS: -L${SRCDIR}/../../../../../lib -lpthread -ldl -lm -lssl -lcrypto
++#cgo linux LDFLAGS: -l:librdp_client.a
++#cgo darwin LDFLAGS: -framework CoreFoundation -framework Security -lrdp_client
+ #include <librdprs.h>
+ */
+ import "C"