<pre style='margin:0'>
Andrea D'Amore (anddam) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/79386917ee13b598052bccf80ea11085e3309e0a">https://github.com/macports/macports-ports/commit/79386917ee13b598052bccf80ea11085e3309e0a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 79386917ee13b598052bccf80ea11085e3309e0a
</span>Author: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
AuthorDate: Sun Dec 18 01:10:18 2016 -0800
<span style='display:block; white-space:pre;color:#404040;'> ld64-127: Update -v to report configured architectures like future versions do
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
</span>---
devel/ld64/Portfile | 3 +-
devel/ld64/files/Makefile-127 | 4 +-
.../files/ld64-127-configured_architectures.patch | 51 ++++++++++++++++++++++
3 files changed, 55 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/ld64/Portfile b/devel/ld64/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 13add04..d0a2b9a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/ld64/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/ld64/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -75,7 +75,7 @@ subport ld64-127 {
</span> # XCode 4.2
# This was the last ld64 release that supported linking ppc executables.
version 127.2
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 9
</span>
set makefile "Makefile-127"
set ld64_ver 127
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -87,6 +87,7 @@ subport ld64-127 {
</span> ld64-127-long-branch-warn.patch \
ld64-127-cxx_initializer_order_and_sim.patch \
ld64-127-ppc.patch \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ ld64-127-configured_architectures.patch \
</span> ld64-97-no-Availability.h.patch \
PR-12249048.patch \
PR-12057707.patch \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/ld64/files/Makefile-127 b/devel/ld64/files/Makefile-127
</span><span style='display:block; white-space:pre;color:#808080;'>index c361a7a..60d2388 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/ld64/files/Makefile-127
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/ld64/files/Makefile-127
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,8 +21,8 @@ endif
</span> # libprunetrie.a
all : src/ld/configure.h ObjectDump dyldinfo ld machocheck rebase unwinddump
<span style='display:block; white-space:pre;background:#ffe0e0;'>-src/ld/configure.h :
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- touch $@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+src/ld/configure.h : src/create_configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DERIVED_SOURCES_DIR=src/ld DERIVED_FILE_DIR=src/ld /bin/sh $^ > $@
</span>
ObjectDump : src/ld/debugline.o
ObjectDump : src/ld/parsers/macho_relocatable_file.o
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/ld64/files/ld64-127-configured_architectures.patch b/devel/ld64/files/ld64-127-configured_architectures.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..a58038a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/ld64/files/ld64-127-configured_architectures.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,51 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+print architectures supported when -v used
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/create_configure | 17 +++++++++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/ld/Options.cpp | 3 ++-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2 files changed, 19 insertions(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ create mode 100755 src/create_configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/create_configure src/create_configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+new file mode 100755
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 00000000..8852198b
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/create_configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -0,0 +1,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#!/bin/bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++echo "" > ${DERIVED_FILE_DIR}/configure.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if [ -n "${IPHONEOS_DEPLOYMENT_TARGET}" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ echo "#define DEFAULT_IPHONEOS_MIN_VERSION \"${IPHONEOS_DEPLOYMENT_TARGET}\"" >> ${DERIVED_FILE_DIR}/configure.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if [ -n "${MACOSX_DEPLOYMENT_TARGET}" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ echo "#define DEFAULT_MACOSX_MIN_VERSION \"${MACOSX_DEPLOYMENT_TARGET}\"" >> ${DERIVED_FILE_DIR}/configure.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if [ -z "${RC_SUPPORTED_ARCHS}" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ RC_SUPPORTED_ARCHS="i386 x86_64 armv6 armv7"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++echo "#define ALL_SUPPORTED_ARCHS \"${RC_SUPPORTED_ARCHS}\"" >> ${DERIVED_FILE_DIR}/configure.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/ld/Options.cpp src/ld/Options.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 3f5b054e..447bc4b4 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/ld/Options.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/ld/Options.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2764,11 +2764,12 @@ void Options::buildSearchPaths(int argc, const char* argv[])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fVerbose = true;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern const char ldVersionString[];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fprintf(stderr, "%s", ldVersionString);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ fprintf(stderr, "configured to support archs: %s\n", ALL_SUPPORTED_ARCHS);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // if only -v specified, exit cleanly
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ( argc == 2 ) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char* ltoVers = lto::version();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ( ltoVers != NULL )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fprintf(stderr, "%s\n", ltoVers);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ fprintf(stderr, "LTO support using: %s\n", ltoVers);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exit(0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.11.0
</span></pre><pre style='margin:0'>
</pre>