From d5db3a0e927f80b71f1b04939cc01884c5ce806c Mon Sep 17 00:00:00 2001 From: Antti Korpi Date: Sun, 13 Dec 2020 15:37:29 +0100 Subject: 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. --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makefile') 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 -- cgit v1.3-2-g0d8e