git: f0d40c982e86 - main - lang/cling: Fix build on i386

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sun, 06 Apr 2025 09:57:58 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f0d40c982e86eb0e1e186d5afd6fd1bd4e228774

commit f0d40c982e86eb0e1e186d5afd6fd1bd4e228774
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-04-06 09:57:36 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-04-06 09:57:36 +0000

    lang/cling: Fix build on i386
    
    Reported by:    pkg-fallout
---
 lang/cling/files/patch-tools_plugins_example_CMakeLists.txt | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lang/cling/files/patch-tools_plugins_example_CMakeLists.txt b/lang/cling/files/patch-tools_plugins_example_CMakeLists.txt
new file mode 100644
index 000000000000..7b46ea0b608d
--- /dev/null
+++ b/lang/cling/files/patch-tools_plugins_example_CMakeLists.txt
@@ -0,0 +1,10 @@
+--- tools/plugins/example/CMakeLists.txt.orig	2024-12-10 16:14:05 UTC
++++ tools/plugins/example/CMakeLists.txt
+@@ -16,6 +16,6 @@ elseif(NOT MSVC)
+ if(APPLE)
+   target_link_libraries(clingDemoPlugin PUBLIC -Wl,-w -Wl,-bind_at_load -Wl,-undefined,dynamic_lookup)
+ elseif(NOT MSVC)
+-  target_link_libraries(clingDemoPlugin PUBLIC -Wl,--unresolved-symbols=ignore-in-object-files)
++  target_link_libraries(clingDemoPlugin PUBLIC -Wl,--unresolved-symbols=ignore-in-object-files -Wl,--allow-shlib-undefined)
+ endif()
+