aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keyd/obey-build-flags.patch
blob: 96d092e7080631e2ea163f72a0266036ded0ae3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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: