diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-07-18 06:55:24 -0700 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-07-19 11:26:04 -0700 |
| commit | f3a0c9a0ce90f5bc83f96664dc16e94a5d0665cc (patch) | |
| tree | e10654ed7823c19db6ab0050405d4f2a69738be9 /math/clad/files/patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp | |
| parent | 01a9f366307de0a21f486b5e3da0b5c83daeb89e (diff) | |
math/clad: Add test target
Diffstat (limited to 'math/clad/files/patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp')
| -rw-r--r-- | math/clad/files/patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/math/clad/files/patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp b/math/clad/files/patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp new file mode 100644 index 000000000000..ba2ae07083d5 --- /dev/null +++ b/math/clad/files/patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp @@ -0,0 +1,16 @@ +- workaround for errors like: +- ld: error: undefined reference due to --no-allow-shlib-undefined: __progname +- >>> referenced by /lib/libc.so.7 + +--- demos/ErrorEstimation/PrintModel/PrintModel.cpp.orig 2023-07-18 14:54:11 UTC ++++ demos/ErrorEstimation/PrintModel/PrintModel.cpp +@@ -4,6 +4,9 @@ + #include "PrintModel.h" + #include "clad/Differentiator/CladUtils.h" + ++char **environ = nullptr; ++const char *__progname = "x"; ++ + // Here we use the BuildOp function provided by clad to build a multiplication + // expression that clad can generate code for. + clang::Expr* PrintModel::AssignError(clad::StmtDiff refExpr, |
