1diff --git a/lib/srv/desktop/rdp/rdpclient/client.go b/lib/srv/desktop/rdp/rdpclient/client.go
2index 4357d7aa1..7e21a0076 100644
3--- a/lib/srv/desktop/rdp/rdpclient/client.go
4+++ b/lib/srv/desktop/rdp/rdpclient/client.go
5@@ -52,14 +52,9 @@ package rdpclient
6
7 /*
8 // Flags to include the static Rust library.
9-#cgo linux,386 LDFLAGS: -L${SRCDIR}/../../../../../target/i686-unknown-linux-gnu/release
10-#cgo linux,amd64 LDFLAGS: -L${SRCDIR}/../../../../../target/x86_64-unknown-linux-gnu/release
11-#cgo linux,arm LDFLAGS: -L${SRCDIR}/../../../../../target/arm-unknown-linux-gnueabihf/release
12-#cgo linux,arm64 LDFLAGS: -L${SRCDIR}/../../../../../target/aarch64-unknown-linux-gnu/release
13-#cgo linux LDFLAGS: -l:librdp_client.a -lpthread -ldl -lm
14-#cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/../../../../../target/x86_64-apple-darwin/release
15-#cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/../../../../../target/aarch64-apple-darwin/release
16-#cgo darwin LDFLAGS: -framework CoreFoundation -framework Security -lrdp_client -lpthread -ldl -lm
17+#cgo LDFLAGS: -L${SRCDIR}/../../../../../lib -lpthread -ldl -lm -lssl -lcrypto
18+#cgo linux LDFLAGS: -l:librdp_client.a
19+#cgo darwin LDFLAGS: -framework CoreFoundation -framework Security -lrdp_client
20 #include <librdprs.h>
21 */
22 import "C"