FreeBSD Bugzilla – Attachment 244330 Details for
Bug 273340
[PATCH] math/curv: fix for jit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
math/curv jit
0003-math-curv-fix-for-jit.patch (text/plain), 1.59 KB, created by
zielonka michal
on 2023-08-25 07:37:58 UTC
(
hide
)
Description:
math/curv jit
Filename:
MIME Type:
Creator:
zielonka michal
Created:
2023-08-25 07:37:58 UTC
Size:
1.59 KB
patch
obsolete
>From 3bd1e12c0fd89141e7a1fb73ba7f7417d633ee95 Mon Sep 17 00:00:00 2001 >From: root <root@example.com> >Date: Fri, 25 Aug 2023 09:27:13 +0200 >Subject: [PATCH 3/3] math/curv fix for jit > >--- > .../files/patch-libcurv_io_cpp__program.cc | 20 +++++++++++++++++++ > 1 file changed, 20 insertions(+) > create mode 100644 math/curv/files/patch-libcurv_io_cpp__program.cc > >diff --git a/math/curv/files/patch-libcurv_io_cpp__program.cc b/math/curv/files/patch-libcurv_io_cpp__program.cc >new file mode 100644 >index 0000000000..0bcdcc6333 >--- /dev/null >+++ b/math/curv/files/patch-libcurv_io_cpp__program.cc >@@ -0,0 +1,20 @@ >+--- libcurv/io/cpp_program.cc.orig 2021-09-29 21:29:01 UTC >++++ libcurv/io/cpp_program.cc >+@@ -65,7 +65,7 @@ Cpp_Program::compile(const Context& cx) >+ file_.close(); >+ >+ // compile C++ to optimized object code >+- auto cc_cmd = stringify("c++ -fpic -O3 -c ", path_.string()); >++ auto cc_cmd = stringify("c++ -isystem /usr/local/include -fpic -O3 -c ", path_.string()); >+ //auto cc_cmd = stringify("c++ -fpic -c -g ", path_.c_str()); >+ if (system(cc_cmd->c_str()) != 0) { >+ preserve_tempfile(); >+@@ -79,7 +79,7 @@ Cpp_Program::compile(const Context& cx) >+ #else >+ auto lib_name = register_tempfile(tempfile_id_,".so"); >+ #endif >+- auto link_cmd = stringify("c++ -shared -o ", lib_name.string(), " ", obj_name.string()); >++ auto link_cmd = stringify("c++ -isystem /usr/local/include -Wl,-rpath,/usr/local/lib -shared -o ", lib_name.string(), " ", obj_name.string()); >+ if (system(link_cmd->c_str()) != 0) >+ throw Exception(cx, "c++ link failed"); >+ >-- >2.41.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 273340
: 244330