depends: native_cctools: don't embed build date

This commit is contained in:
tobtoht 2024-02-23 18:27:15 +01:00
parent 059028a30a
commit 3d2b6a8ac2
No known key found for this signature in database
GPG Key ID: E45B10DD027D2472
2 changed files with 17 additions and 0 deletions

View File

@ -6,6 +6,7 @@ $(package)_file_name=$(package)-$($(package)_version).tar.gz
$(package)_sha256_hash=70a7189418c2086d20c299c5d59250cf5940782c778892ccc899c66516ed240e $(package)_sha256_hash=70a7189418c2086d20c299c5d59250cf5940782c778892ccc899c66516ed240e
$(package)_build_subdir=cctools $(package)_build_subdir=cctools
$(package)_dependencies=native_clang native_libtapi $(package)_dependencies=native_clang native_libtapi
$(package)_patches=no-build-date.patch
define $(package)_set_vars define $(package)_set_vars
$(package)_config_opts=--target=$(host) --disable-lto-support --with-libtapi=$(host_prefix) $(package)_config_opts=--target=$(host) --disable-lto-support --with-libtapi=$(host_prefix)
@ -14,6 +15,10 @@ $(package)_cc=$(host_prefix)/native/bin/clang
$(package)_cxx=$(host_prefix)/native/bin/clang++ $(package)_cxx=$(host_prefix)/native/bin/clang++
endef endef
define $(package)_preprocess_cmds
patch -p1 < $($(package)_patch_dir)/no-build-date.patch
endef
define $(package)_config_cmds define $(package)_config_cmds
$($(package)_autoconf) $($(package)_autoconf)
endef endef

View File

@ -0,0 +1,12 @@
diff --git a/cctools/ld64/src/ld/Options.cpp b/cctools/ld64/src/ld/Options.cpp
index 3bb8324..033760d 100644
--- a/cctools/ld64/src/ld/Options.cpp
+++ b/cctools/ld64/src/ld/Options.cpp
@@ -4279,7 +4279,6 @@ void Options::buildSearchPaths(int argc, const char* argv[])
fVerbose = true;
extern const char ldVersionString[];
fprintf(stderr, "%s", ldVersionString);
- fprintf(stderr, "BUILD " __TIME__ " " __DATE__"\n");
fprintf(stderr, "configured to support archs: %s\n", ALL_SUPPORTED_ARCHS);
// if only -v specified, exit cleanly
if ( argc == 2 ) {