summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Antti Korpi2020-12-13 15:37:29 +0100
committerGravatar Antti Korpi2020-12-13 15:43:34 +0100
commitd5db3a0e927f80b71f1b04939cc01884c5ce806c (patch)
tree5383a331efcc6789e857504d2c64ec3a33f857b2
parent620fed02671d624b74b7f8e54987e2ae5572019b (diff)
downloadxkbcat-d5db3a0e927f80b71f1b04939cc01884c5ce806c.tar.gz
xkbcat-d5db3a0e927f80b71f1b04939cc01884c5ce806c.zip
Move linker flags to the end
Re #4. Apparently this matters; https://stackoverflow.com/a/409470. The previous order (source file last) has worked for me locally on gcc and clang on Void Linux the whole time, and it works in clang on Travis too. Either way, Travis GCC will catch regressions.
-rw-r--r--makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/makefile b/makefile
index f9166ab..6ec8604 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
xkbcat: xkbcat.c
- $(CC) -O3 --std=c99 -pedantic -Wall -lX11 -lXi -o xkbcat xkbcat.c
+ $(CC) -O3 --std=c99 -pedantic -Wall xkbcat.c -o xkbcat -lX11 -lXi
clean:
rm --force xkbcat