<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch master
in repository macports-base.

</pre>
<p><a href="https://github.com/macports/macports-base/commit/eb20cf80840f9af2d57905138bee1c9c2fa1bcc7">https://github.com/macports/macports-base/commit/eb20cf80840f9af2d57905138bee1c9c2fa1bcc7</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new eb20cf80 machista1.0: Fix test copilation on macOS 11
</span>eb20cf80 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit eb20cf80840f9af2d57905138bee1c9c2fa1bcc7
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Fri Jan 28 20:04:43 2022 +0100

<span style='display:block; white-space:pre;color:#404040;'>    machista1.0: Fix test copilation on macOS 11
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    On macOS 11, -nostdlib no longer works:
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    | ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    We'd have to -lSystem to fix this, at which point -nostdlib no longer
</span><span style='display:block; white-space:pre;color:#404040;'>    makes sense, so we might as well drop it. This may break tests on
</span><span style='display:block; white-space:pre;color:#404040;'>    systems where compiling an (i386, x86_64) fat binary is not possible,
</span><span style='display:block; white-space:pre;color:#404040;'>    but this is preferable to failure to build on modern macOS.
</span>---
 src/machista1.0/Makefile.in | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/machista1.0/Makefile.in b/src/machista1.0/Makefile.in
</span><span style='display:block; white-space:pre;color:#808080;'>index 61f179c2..e1abb26a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/machista1.0/Makefile.in
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/machista1.0/Makefile.in
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -64,10 +64,7 @@ tests/libmachista-test: tests/libmachista-test.c libmachista.h libmachista.o has
</span> # we need a different alternative.
 #
 # Build a library that's dual arch, relying on $OS_MAJOR to figure out whatever
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# dual arch means on the current platform. Note the use of -nostdlib, because
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# later versions of macOS actually didn't ship support for i386 stdlibs for
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# a while, so no universal compiling was possible on those machines at all
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# (which didn't matter, since libSystem.B.dylib was still universal on those).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# dual arch means on the current platform.
</span> #
 # The if expression below is basically the equivalent from aclocal.m4 for
 # UNIVERSAL_ARCHS, except that we're always forcing some kind of universality.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -75,7 +72,6 @@ tests/%${SHLIB_SUFFIX}:
</span> ifeq (darwin,@OS_PLATFORM@)
        ${SHLIB_LD} \
                $$(if [ @OS_MAJOR@ -lt 10 ]; then echo "-arch i386 -arch ppc"; elif [ @OS_MAJOR@ -lt 20 ]; then echo "-arch x86_64 -arch i386"; else echo "-arch x86_64 -arch arm64"; fi) \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                -nostdlib \
</span>           -install_name $@ \
                $^ \
                -o $@
</pre><pre style='margin:0'>

</pre>