diff options
author | fanquake <fanquake@gmail.com> | 2020-08-18 09:27:11 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-08-25 14:37:44 +0800 |
commit | cc107a3af17d821f66de9357efe73214a628803b (patch) | |
tree | 7ced3cfed96ae1e4bf06077ece51d0b31fe6c5e3 /depends/packages/native_cctools.mk | |
parent | 865cb23a485d88be603c1d6bf8c32ef7a5edeaa2 (diff) |
build: use patch rather than sed in native_cctools package
Diffstat (limited to 'depends/packages/native_cctools.mk')
-rw-r--r-- | depends/packages/native_cctools.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/depends/packages/native_cctools.mk b/depends/packages/native_cctools.mk index 5022ed980f..d56b636695 100644 --- a/depends/packages/native_cctools.mk +++ b/depends/packages/native_cctools.mk @@ -4,6 +4,8 @@ $(package)_download_path=https://github.com/tpoechtrager/cctools-port/archive $(package)_file_name=$($(package)_version).tar.gz $(package)_sha256_hash=e51995a843533a3dac155dd0c71362dd471597a2d23f13dff194c6285362f875 $(package)_build_subdir=cctools +$(package)_patches=ld64_disable_threading.patch + ifeq ($(strip $(FORCE_USE_SYSTEM_CLANG)),) $(package)_clang_version=8.0.0 $(package)_clang_download_path=https://releases.llvm.org/$($(package)_clang_version) @@ -78,7 +80,7 @@ endef define $(package)_preprocess_cmds CC=$($(package)_cc) CXX=$($(package)_cxx) INSTALLPREFIX=$($(package)_extract_dir) ./libtapi/build.sh && \ CC=$($(package)_cc) CXX=$($(package)_cxx) INSTALLPREFIX=$($(package)_extract_dir) ./libtapi/install.sh && \ - sed -i.old "/define HAVE_PTHREADS/d" $($(package)_build_subdir)/ld64/src/ld/InputFiles.h + patch -p1 < $($(package)_patch_dir)/ld64_disable_threading.patch endef define $(package)_config_cmds |