diff --git a/gui/backend.go b/gui/backend.go
index f8626524a489670a1d00aa59ebe5869b7c54cc35..b5cfe8e7ab629255295aa2472ce36aaa90edf4f9 100644
--- a/gui/backend.go
+++ b/gui/backend.go
@@ -3,10 +3,13 @@ package main
 /* a wrapper around bitmask that exposes status to a QtQml gui.
    Have a look at the pkg/backend module for further enlightment. */
 
-import (
-	"C"
-	"unsafe"
+// #cgo pkg-config: Qt6Core Qt6Gui Qt6Widgets Qt6Quick Qt6QuickControls2
+// #cgo CXXFLAGS: -I ..
+import "C"
+
+import "unsafe"
 
+import (
 	"0xacab.org/leap/bitmask-vpn/pkg/backend"
 )