From 36163b93731956cb986941384de4e6458735472d Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 27 Dec 2020 10:30:29 +0000
Subject: import previous patch by nikolaszimmermann


diff --git a/Makefile b/Makefile
index ef24e94..7bbca1a 100644
--- a/Makefile
+++ b/Makefile
@@ -369,7 +369,7 @@ trailingWhitespace:
 # =========================================================
 # make install is validated only for the following targets
 # =========================================================
-ifneq (,$(filter Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS CYGWIN% , $(UNAME)))
+ifneq (,$(filter Linux Darwin GNU/kFreeBSD GNU Haiku OpenBSD FreeBSD NetBSD DragonFly SunOS CYGWIN% , $(UNAME)))
 
 DESTDIR     ?=
 # directory variables: GNU conventions prefer lowercase
-- 
2.28.0


From 658f6b936d04787a126d479598e8a4d303b2c109 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 27 Dec 2020 11:59:31 +0000
Subject: Remove -pthread for the test


diff --git a/tests/collisions/Makefile b/tests/collisions/Makefile
index bad9835..1e13582 100644
--- a/tests/collisions/Makefile
+++ b/tests/collisions/Makefile
@@ -29,7 +29,7 @@ CPPFLAGS += $(addprefix -I ,$(SRC_DIRS))
 CFLAGS   ?= -std=c99 \
             -Wall -Wextra -Wconversion
 CXXFLAGS ?= -Wall -Wextra -Wconversion -std=c++11
-LDFLAGS  += -pthread
+LDFLAGS  += 
 TESTHASHES = 110000000
 
 HASH_SRC := $(sort $(wildcard allcodecs/*.c allcodecs/*.cc))
-- 
2.28.0


From a6343520084c21292274c3a32c3b31f60d835024 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 27 Dec 2020 12:47:45 +0000
Subject: Fix linking against -lubsan (needed for the clang tests)


diff --git a/Makefile b/Makefile
index 7bbca1a..766ba11 100644
--- a/Makefile
+++ b/Makefile
@@ -303,7 +303,7 @@ usan: CXX=clang++
 usan:  ## check CLI runtime for undefined behavior, using clang's sanitizer
 	@echo ---- check undefined behavior - sanitize ----
 	$(MAKE) clean
-	$(MAKE) test CC=$(CC) CXX=$(CXX) MOREFLAGS="-g -fsanitize=undefined -fno-sanitize-recover=all"
+	$(MAKE) test CC=$(CC) CXX=$(CXX) MOREFLAGS="-g -fsanitize=undefined -fno-sanitize-recover=all -fsanitize-undefined-trap-on-error"
 
 .PHONY: staticAnalyze
 SCANBUILD ?= scan-build
-- 
2.28.0

