aboutsummaryrefslogtreecommitdiffhomepage
path: root/wl
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-01-16 17:32:52 +0900
committerOphestra <cat@gensokyo.uk>2025-01-16 17:32:52 +0900
commitb60c01f4405ec3b5cc4a740fe994c3b9f39cf01f (patch)
tree3d43cd726a26bba2336d2373a6dfe65a567a35a8 /wl
parent124743ffd3da7c31ef9c562593e15d88bb19008e (diff)
fortify: switch to static linking
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'wl')
-rw-r--r--wl/c.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/wl/c.go b/wl/c.go
index 97c641bb..b571e063 100644
--- a/wl/c.go
+++ b/wl/c.go
@@ -4,12 +4,13 @@ package wl
//go:generate sh -c "wayland-scanner private-code `pkg-config --variable=datarootdir wayland-protocols`/wayland-protocols/staging/security-context/security-context-v1.xml security-context-v1-protocol.c"
/*
-#cgo linux pkg-config: wayland-client
+#cgo linux pkg-config: --static wayland-client
#cgo freebsd openbsd LDFLAGS: -lwayland-client
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <unistd.h>
#include <sys/socket.h>