aboutsummaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
Diffstat (limited to 'depends')
-rw-r--r--depends/hosts/linux.mk6
-rw-r--r--depends/packages.md2
-rw-r--r--depends/packages/boost.mk5
-rw-r--r--depends/patches/boost/process_macos_sdk.patch27
4 files changed, 6 insertions, 34 deletions
diff --git a/depends/hosts/linux.mk b/depends/hosts/linux.mk
index 9cd28f0deb..f5ce2bb0b8 100644
--- a/depends/hosts/linux.mk
+++ b/depends/hosts/linux.mk
@@ -13,7 +13,11 @@ linux_release_CXXFLAGS=$(linux_release_CFLAGS)
linux_debug_CFLAGS=-O1 -g
linux_debug_CXXFLAGS=$(linux_debug_CFLAGS)
-linux_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_LIBCPP_ENABLE_DEBUG_MODE=1
+# https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html
+linux_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
+
+# https://libcxx.llvm.org/Hardening.html
+linux_debug_CPPFLAGS+=-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG
ifeq (86,$(findstring 86,$(build_arch)))
i686_linux_CC=gcc -m32
diff --git a/depends/packages.md b/depends/packages.md
index 0ffdc66d48..7a7a42afa1 100644
--- a/depends/packages.md
+++ b/depends/packages.md
@@ -162,7 +162,7 @@ From the [Gentoo Wiki entry](https://wiki.gentoo.org/wiki/Project:Quality_Assura
> creates. This leads to massive overlinking, which is toxic to the Gentoo
> ecosystem, as it leads to a massive number of unnecessary rebuilds.
-Where possible, packages are built with Position Independant Code. Either using
+Where possible, packages are built with Position Independent Code. Either using
the Autotools `--with-pic` flag, or `CMAKE_POSITION_INDEPENDENT_CODE` with CMake.
## Secondary dependencies:
diff --git a/depends/packages/boost.mk b/depends/packages/boost.mk
index ab43764b38..ebc097d686 100644
--- a/depends/packages/boost.mk
+++ b/depends/packages/boost.mk
@@ -3,11 +3,6 @@ $(package)_version=1.81.0
$(package)_download_path=https://boostorg.jfrog.io/artifactory/main/release/$($(package)_version)/source/
$(package)_file_name=boost_$(subst .,_,$($(package)_version)).tar.bz2
$(package)_sha256_hash=71feeed900fbccca04a3b4f2f84a7c217186f28a940ed8b7ed4725986baf99fa
-$(package)_patches=process_macos_sdk.patch
-
-define $(package)_preprocess_cmds
- patch -p1 < $($(package)_patch_dir)/process_macos_sdk.patch
-endef
define $(package)_stage_cmds
mkdir -p $($(package)_staging_prefix_dir)/include && \
diff --git a/depends/patches/boost/process_macos_sdk.patch b/depends/patches/boost/process_macos_sdk.patch
deleted file mode 100644
index ebc556d972..0000000000
--- a/depends/patches/boost/process_macos_sdk.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Fix Boost Process compilation with macOS 14 SDK.
-Can be dropped with Boost 1.84.0.
-https://github.com/boostorg/process/pull/343.
-https://github.com/boostorg/process/issues/342.
-
-diff --git a/boost/process/detail/posix/handles.hpp b/boost/process/detail/posix/handles.hpp
-index cd9e1ce5a..304e77b1c 100644
---- a/boost/process/detail/posix/handles.hpp
-+++ b/boost/process/detail/posix/handles.hpp
-@@ -33,7 +33,7 @@ inline std::vector<native_handle_type> get_handles(std::error_code & ec)
- else
- ec.clear();
-
-- auto my_fd = ::dirfd(dir.get());
-+ auto my_fd = dirfd(dir.get());
-
- struct ::dirent * ent_p;
-
-@@ -117,7 +117,7 @@ struct limit_handles_ : handler_base_ext
- return;
- }
-
-- auto my_fd = ::dirfd(dir);
-+ auto my_fd = dirfd(dir);
- struct ::dirent * ent_p;
-
- while ((ent_p = readdir(dir)) != nullptr)