Bad-ptr/xsetprop — pull request #1 by vsiegel (2012-12-23 14:18:16+00:00)
Title: Order of gcc command args wrong, make does not compile.

...nd line so they are found when linking

Hi!

The -l options from pkg-config need to be at the end of the gcc command line in Makefile
to be in effect, otherwise the linking fails.
I got an error like below when compiling:

$ make
gcc `pkg-config --libs --cflags x11 xmu` xsetprop.c -o xsetprop
/tmp/ccQbRUHw.o: In function `splits_to_atomsarray':
xsetprop.c:(.text+0x349): undefined reference to `XInternAtom'
...[some similar lines]
(on Ubuntu 12.10)

Best Regards,
Volker