<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d42267de0cfcc92f9f62158a39818e54a5f2d89b">https://github.com/macports/macports-ports/commit/d42267de0cfcc92f9f62158a39818e54a5f2d89b</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 d42267de0cf duckdb: fix build with gcc
</span>d42267de0cf is described below
<span style='display:block; white-space:pre;color:#808000;'>commit d42267de0cfcc92f9f62158a39818e54a5f2d89b
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Thu Jun 15 16:52:27 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> duckdb: fix build with gcc
</span>---
databases/duckdb/Portfile | 9 +++++++++
1 file changed, 9 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/duckdb/Portfile b/databases/duckdb/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e2057f78f60..8e3fc51510f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/duckdb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/duckdb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,3 +40,12 @@ compiler.cxx_standard 2011
</span> depends_build-append \
port:pkgconfig \
port:zstd
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Without the following setting, the build fails miserably at linking with every possible symbol undefined.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Undefined symbols: __ZNK6duckdb5Value14GetValueUnsafeItEET_v, __ZN6duckdb11LogicalType3MAPES0_S0_ etc.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DEXTENSION_STATIC_BUILD=TRUE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -latomic
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>