<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/dfebca9fbc36f7f8ef792c00edf8e9cc25df8238">https://github.com/macports/macports-ports/commit/dfebca9fbc36f7f8ef792c00edf8e9cc25df8238</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 dfebca9 legacysupport 1.0 PG: add static linking option
</span>dfebca9 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit dfebca9fbc36f7f8ef792c00edf8e9cc25df8238
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Sun May 10 08:39:52 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> legacysupport 1.0 PG: add static linking option
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> it may be desirable in some cases to link in the
</span><span style='display:block; white-space:pre;color:#404040;'> legacysupport functions statically, for example
</span><span style='display:block; white-space:pre;color:#404040;'> in the upcoming release of llvm/clang-devel.
</span>---
_resources/port1.0/group/legacysupport-1.0.tcl | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/legacysupport-1.0.tcl b/_resources/port1.0/group/legacysupport-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index a472d9d..fe9ab45 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/legacysupport-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/legacysupport-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,17 +8,22 @@
</span> options legacysupport.newest_darwin_requires_legacy
default legacysupport.newest_darwin_requires_legacy 15
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# allow static linking of legacysupport if preferred (eg compilers)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options legacysupport.use_static
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default legacysupport.use_static no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> proc add_legacysupport {} {
global prefix \
os.platform os.major \
legacysupport.newest_darwin_requires_legacy
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set MPLegacyIncDir ${prefix}/include/LegacySupport
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set AddLDFlag -lMacportsLegacySupport
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set AddCFlag -I${MPLegacyIncDir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set AddCIncPath C_INCLUDE_PATH=${MPLegacyIncDir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set AddCppIncPath CPLUS_INCLUDE_PATH=${MPLegacyIncDir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set MPLegacyIncDir ${prefix}/include/LegacySupport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set AddLDFlag -lMacportsLegacySupport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set AddStaticLDFlag ${prefix}/lib/libMacportsLegacySupport.a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set AddCFlag -I${MPLegacyIncDir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set AddCIncPath C_INCLUDE_PATH=${MPLegacyIncDir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set AddCppIncPath CPLUS_INCLUDE_PATH=${MPLegacyIncDir}
</span>
# Delete everything first to avoid duplicate values
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,6 +32,7 @@ proc add_legacysupport {} {
</span>
# configure options
configure.ldflags-delete ${AddLDFlag}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-delete ${AddStaticLDFlag}
</span> configure.cflags-delete ${AddCFlag}
configure.cppflags-delete ${AddCFlag}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,7 +49,11 @@ proc add_legacysupport {} {
</span> depends_lib-append path:lib/libMacportsLegacySupport.dylib:legacy-support
# Add to configure options
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.ldflags-append ${AddLDFlag}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[option legacysupport.use_static]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append ${AddStaticLDFlag}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append ${AddLDFlag}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> configure.cflags-append ${AddCFlag}
configure.cppflags-append ${AddCFlag}
</pre><pre style='margin:0'>
</pre>