<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/eef1a7e2b2fcd84a861687541ec2623e2d614fea">https://github.com/macports/macports-ports/commit/eef1a7e2b2fcd84a861687541ec2623e2d614fea</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit eef1a7e2b2fcd84a861687541ec2623e2d614fea
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sat Dec 11 07:25:00 2021 -0600
<span style='display:block; white-space:pre;color:#404040;'> ksh93: Use the right flags and compiler
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Also honor build.jobs and be more specific about which sh we want.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/32182
</span>---
shells/ksh93/Portfile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/shells/ksh93/Portfile b/shells/ksh93/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9db8cffaf34..2a88179da0c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/shells/ksh93/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/shells/ksh93/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -39,7 +39,15 @@ use_configure no
</span>
build.cmd bin/package
build.target make
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.args SHELL=sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Build output is misleading: You will see "CC=cc" and builds being done
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# by "cc", but that "cc" is a wrapper script created by the build system
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# which in turn calls the compiler we specify here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env "CC=${configure.cc}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CCFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "NPROC=${build.jobs}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args SHELL="/bin/sh"
</span>
destroot {
set arch [exec ${worksrcpath}/bin/package]
</pre><pre style='margin:0'>
</pre>