Files
haikuports/dev-libs/crypto++/patches/crypto++-8.8.0.patchset
2023-09-24 06:51:34 +00:00

63 lines
2.1 KiB
Plaintext

From 03e8f52590826ab2de9fe31538cfe692d8d4b0e9 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 b1f4af0..06e2de9 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
@@ -1144,7 +1145,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.37.3
From 2846485f5cbc97808f788c77749595535d69cf04 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 107e445..c54d4c9 100644
--- a/config_os.h
+++ b/config_os.h
@@ -40,7 +40,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.37.3