>From e0f99b03dfe040e61a4c7170735b15f62b8a98ac Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Tue, 24 Feb 2026 18:33:28 +0100
Subject: [PATCH 9/9] Link libkeymap statically in udeb, dynamically in deb

---
 debian/rules | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 5b45de7..b0c9f47 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,13 +29,13 @@ include /usr/share/dpkg/buildtools.mk
 override_dh_auto_clean:
 	rm -fr bld/
 
-conf_args := --enable-nls --disable-libkeymap --disable-vlock
+conf_args := --enable-nls --disable-vlock
 override_dh_auto_configure:
 ifeq (, $(filter noudeb, $(DEB_BUILD_PROFILES)))
 	CFLAGS='-Os $(filter-out -O%,$(CFLAGS))' \
-	dh_auto_configure -Bbld/udeb -- $(conf_args)
+	dh_auto_configure -Bbld/udeb -- $(conf_args) --disable-libkeymap
 endif
-	dh_auto_configure -Bbld/deb -- $(conf_args)
+	dh_auto_configure -Bbld/deb -- $(conf_args) --enable-libkeymap
 
 override_dh_auto_build:
 ifeq (, $(filter noudeb, $(DEB_BUILD_PROFILES)))
-- 
2.47.3

