Applied alpha patch and config colors
config.mk: use PKG_CONFIG in commented OpenBSD section
Let the user specify CPPFLAGS
This complements the work done in d4928ed, allowing the user to specify
the preprocessor flags with the CPPFLAGS environment variable. This is
useful for example to specify preprocessor macros with -D.
CFLAGS could be used instead, but CPPFLAGS is more correct and is expected
to be honored in some cases. For example, the helper scripts to build
Debian packages make use of CPPFLAGS, but the variable is currently
being ignored unless manually appended to CFLAGS.
Set the path of pkg-config in a variable instead of hardcoding it
In this way the path of pkg-config can be overridden from the command
line. This is useful for example when cross-compiling.
config.mk: remove extra newline before EOF
Let the user specify C and LD FLAGS
Do not obfuscate what make is doing.
Change some styling too while we're at it.
There's no need for libXext to compile st.
Commit to push the 0.6 release.
Remove strsep() call
strsep() is not a POSIX function, and it means that every system
needs different defines to expose it. If the prototype of strsep
is not exposed then an ugly int/pointer is done and it might mean
a crash. The best solution?, to remove the strsep and make a custom
loop. If C programmers cannot do this kind of loops without calling
a library function, then maybe we should move all the suckless
software to Java.
Glibc wants me to use _DEFAULT_SOURCe. I do obey.
Comment default CC assignment
CC by default is cc, so the assignment was doing nothing, but
it was using non standard syntax, so some system (NetBSD) fail
Making surf compile again with rt.
The clock_gettime patch needs librt to be linked to surf.
Thanks _odie for the hint.