aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keyd/obey-build-flags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/keyd/obey-build-flags.patch')
-rw-r--r--testing/keyd/obey-build-flags.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/keyd/obey-build-flags.patch b/testing/keyd/obey-build-flags.patch
new file mode 100644
index 0000000000..96d092e708
--- /dev/null
+++ b/testing/keyd/obey-build-flags.patch
@@ -0,0 +1,20 @@
+--- a/Makefile
++++ b/Makefile
+@@ -4,14 +4,14 @@
+ PREFIX=/usr
+
+ VERSION=1.1.2
+-CFLAGS=-DVERSION=\"$(VERSION)\"
++CFLAGS+=-DVERSION=\"$(VERSION)\"
+
+ all:
+ mkdir -p bin
+- $(CC) $(CFLAGS) -O3 src/*.c -o bin/keyd -ludev
++ $(CC) $(CFLAGS) $(LDFLAGS) src/*.c -o bin/keyd -ludev
+ debug:
+ mkdir -p bin
+- $(CC) $(CFLAGS) -Wall -Wextra -pedantic -DDEBUG -g src/*.c -o bin/keyd -ludev
++ $(CC) $(CFLAGS) $(LDFLAGS) -Wall -Wextra -pedantic -DDEBUG -g src/*.c -o bin/keyd -ludev
+ man:
+ pandoc -s -t man man.md | gzip > keyd.1.gz
+ clean: