From 6b3c1cea8e472008d1a127e8667d950b424b5f96 Mon Sep 17 00:00:00 2001 From: O_WRONLY <67067346+Hojun-Cho@users.noreply.github.com> Date: Tue, 23 Dec 2025 23:58:22 +0900 Subject: [PATCH] fix gtk Makefile --- gtk/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/Makefile b/gtk/Makefile index 2d01b80..4065493 100644 --- a/gtk/Makefile +++ b/gtk/Makefile @@ -1,6 +1,6 @@ CFLAGS = -Wall -O2 -I.. `pkg-config --cflags gtk+-3.0` LDFLAGS = `pkg-config --libs gtk+-3.0` -DSTDIR = /usr/lib64/gtk-3.0/3.0.0/immodules +DSTDIR ?= $(shell find /usr/lib* -type d -path "*/gtk-3.0/*/immodules" 2>/dev/null | head -1) im-strans.so: main.c $(CC) -shared -fPIC $(CFLAGS) -o $@ $< $(LDFLAGS) @@ -10,6 +10,7 @@ docker: main.c Dockerfile docker run --rm -v $(CURDIR)/..:/src -w /src/gtk strans-gtk make im-strans.so install: + mkdir -p $(DSTDIR) cp im-strans.so $(DSTDIR)/ gtk-query-immodules-3.0 --update-cache