Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2020 10:04:24 +0000 (UTC)
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r546714 - head/math/scilab/files
Message-ID:  <202008281004.07SA4OGB016522@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: makc
Date: Fri Aug 28 10:04:24 2020
New Revision: 546714
URL: https://svnweb.freebsd.org/changeset/ports/546714

Log:
  math/scilab: fix build with -fno-common

Added:
  head/math/scilab/files/patch-fnocommon   (contents, props changed)

Added: head/math/scilab/files/patch-fnocommon
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/scilab/files/patch-fnocommon	Fri Aug 28 10:04:24 2020	(r546714)
@@ -0,0 +1,30 @@
+--- modules/tclsci/src/c/TCL_Command.c.orig	2020-02-25 10:00:14 UTC
++++ modules/tclsci/src/c/TCL_Command.c
+@@ -38,6 +38,12 @@ int			TclInterpReturn;
+ // Global Tcl Return Result.
+ char *			TclInterpResult;
+ 
++/* The tclLoop thread Id
++in order to wait it ends when closing Scilab */
++__threadId TclThread;
++__threadSignal InterpReady;
++__threadSignalLock InterpReadyLock;
++
+ // Single execution
+ __threadLock		singleExecutionLock;
+ 
+--- modules/tclsci/src/c/TCL_Command.h.orig	2020-02-25 10:00:14 UTC
++++ modules/tclsci/src/c/TCL_Command.h
+@@ -85,9 +85,9 @@ char		*getTclCommandResult(void);
+ 
+ /* The tclLoop thread Id
+ in order to wait it ends when closing Scilab */
+-__threadId TclThread;
++extern __threadId TclThread;
+ 
+-__threadSignal InterpReady;
+-__threadSignalLock InterpReadyLock;
++extern __threadSignal InterpReady;
++extern __threadSignalLock InterpReadyLock;
+ 
+ #endif /* !__TCL_COMMAND_H__ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008281004.07SA4OGB016522>