gnu: scilab: Fix compilation error.

Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Nicolas Graves 2023-08-17 20:15:07 +02:00 committed by Andreas Enge
parent 97b52b2d48
commit 48648031a5
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -8549,6 +8549,10 @@ (define-public scilab
"__threadSignal InterpReady;" "\n"
"__threadSignalLock InterpReadyLock;"
"\n")))
;; Fix CPP compilation errors.
(substitute* "modules/output_stream/src/cpp/diary_manager.cpp"
(("if \\(array_size > 0\\)")
"if (*array_size > 0)"))
;; Set SCIHOME to /tmp before macros compilation.
(setenv "SCIHOME" "/tmp"))))))
(home-page "https://scilab.org")