summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorTim van der Molen <tim@kariliq.nl>2020-06-15 19:51:36 +0200
committerTim van der Molen <tim@kariliq.nl>2020-06-15 19:51:36 +0200
commit5e4c6de73a023e480a909aac1eb23d93ceb4d0fa (patch)
tree0a3f9e59cad621a17c8ed3db447285ae1d983cca /config.mk
parenta624883d92ea54886b739f1000e39ccf1afc5577 (diff)
Enable --version-sort on systems without strverscmp()
The --version-sort option requires strverscmp(), but this is a glibc extension that does not exist on OpenBSD and other systems. To enable --version-sort on those systems, provide an internal implementation of strverscmp(). The implementation is from the musl C library and is MIT-licensed. The build process remains the same: the verscmp flag should be set to 1 only if strverscmp() is available in libc. If verscmp is 0, then the internal implementation is used.
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk5
1 files changed, 1 insertions, 4 deletions
diff --git a/config.mk b/config.mk
index 0a8c0e4..5dfd7d3 100644
--- a/config.mk
+++ b/config.mk
@@ -64,10 +64,7 @@ ifeq (${stat64},1)
endif
ifeq (${verscmp},1)
- CFLAGS += -DHAVE_VERSCMP
- MAN_VERSCMP = available
-else
- MAN_VERSCMP = not available
+ CFLAGS += -DHAVE_STRVERSCMP
endif
ifeq (${xinerama},1)