mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
- Mark broken on i386 ChangeLog: https://root.cern/doc/v634/release-notes.html PR: 284139
20 lines
676 B
C++
20 lines
676 B
C++
--- interpreter/cling/lib/Interpreter/Interpreter.cpp.orig 2024-11-30 13:04:19 UTC
|
|
+++ interpreter/cling/lib/Interpreter/Interpreter.cpp
|
|
@@ -458,8 +458,17 @@ namespace cling {
|
|
const char* Attr = LangOpts.CPlusPlus ? " throw () " : "";
|
|
#else
|
|
const char* LinkageCxx = Linkage;
|
|
+#ifdef __FreeBSD__
|
|
+// atexit-like commands need 'throw()' specifier on FreeBSD 15
|
|
+#if __FreeBSD_cc_version >= 1500000
|
|
+ const char* Attr = " throw () ";
|
|
+#else
|
|
const char* Attr = "";
|
|
#endif
|
|
+#else
|
|
+ const char* Attr = "";
|
|
+#endif // __FreeBSD__
|
|
+#endif // __GLIBC__
|
|
|
|
#if defined(__GLIBCXX__)
|
|
const char* cxa_atexit_is_noexcept = LangOpts.CPlusPlus ? " noexcept" : "";
|