Files
haikuports/dev-libs/crypto++/patches/crypto++-8.9.0.patchset
2025-04-08 10:56:15 +00:00

63 lines
2.1 KiB
Plaintext

From 7a0a602e398bf79f38ab0a49d65d60c6e394a057 Mon Sep 17 00:00:00 2001
From: kikadf <kikadf.01@gmail.com>
Date: Fri, 31 May 2019 16:04:29 +0200
Subject: add Haiku patchset
diff --git a/GNUmakefile b/GNUmakefile
index fbc69a2..ac40ccd 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -78,6 +78,7 @@ IS_DARWIN := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c "Darwin")
IS_NETBSD := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c "NetBSD")
IS_AIX := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c "aix")
IS_SUN := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c -E "SunOS|Solaris")
+IS_HAIKU := $(shell echo "$(SYSTEMX)" | $(GREP) -i -c "haiku")
SUN_COMPILER := $(shell $(CXX) -V 2>&1 | $(GREP) -i -c -E 'CC: (Sun|Studio)')
GCC_COMPILER := $(shell $(CXX) --version 2>/dev/null | $(GREP) -v -E '(llvm|clang)' | $(GREP) -i -c -E '(gcc|g\+\+)')
@@ -87,7 +88,7 @@ INTEL_COMPILER := $(shell $(CXX) --version 2>/dev/null | $(GREP) -i -c '\(icc\)'
# Enable shared object versioning for Linux and Solaris
HAS_SOLIB_VERSION ?= 0
-ifneq ($(IS_LINUX)$(IS_HURD)$(IS_SUN),000)
+ifneq ($(IS_LINUX)$(IS_HURD)$(IS_SUN)$(IS_HAIKU),0000)
HAS_SOLIB_VERSION := 1
endif
@@ -1148,7 +1149,7 @@ ifeq ($(HAS_SOLIB_VERSION),1)
# Different patchlevels and minors are compatible since 6.1
SOLIB_COMPAT_SUFFIX=.$(LIB_MAJOR)
# Linux uses -Wl,-soname
-ifneq ($(IS_LINUX)$(IS_HURD),00)
+ifneq ($(IS_LINUX)$(IS_HURD)$(IS_SUN)$(IS_HAIKU),0000)
# Linux uses full version suffix for shared library
SOLIB_VERSION_SUFFIX=.$(LIB_MAJOR).$(LIB_MINOR).$(LIB_PATCH)
SOLIB_FLAGS=-Wl,-soname,libcryptopp.so$(SOLIB_COMPAT_SUFFIX)
--
2.48.1
From 3d69eb710baac6426c0eff310a3f8078a4cfe59c Mon Sep 17 00:00:00 2001
From: kikadf <kikadf.01@gmail.com>
Date: Fri, 7 Jun 2019 15:00:26 +0200
Subject: Haiku fix 2 config.h
diff --git a/config_os.h b/config_os.h
index ed8e52c..ba86a6b 100644
--- a/config_os.h
+++ b/config_os.h
@@ -39,7 +39,7 @@
#endif
// Unix and Linux platforms
-#if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__) || defined(__sun)
+#if defined(__unix__) || defined(__MACH__) || defined(__NetBSD__) || defined(__sun) || defined(__HAIKU__)
#define CRYPTOPP_UNIX_AVAILABLE
#endif
--
2.48.1