Fix go configuration and SWIG_GCC_VERSION
- in configure.ac: modify sed expression to only look at first line of gccgo --version, extract the last numeric token, and remove periods; this parses e.g. "gccgo (Debian 4.7.2-5) 4.7.2" - in goruntime.swg: fix typo in __GNUC_PATCHLEVEL__ (SF Bug #1298)
This commit is contained in:
parent
b6c1889c08
commit
66555ad2a7
3 changed files with 11 additions and 3 deletions
|
|
@ -116,7 +116,7 @@ extern void _cgo_panic(const char *);
|
|||
file is the same as the version of gccgo. */
|
||||
|
||||
#define SWIG_GCC_VERSION \
|
||||
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC__PATH_LEVEL__)
|
||||
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
||||
|
||||
#if SWIG_GCC_VERSION < 40700
|
||||
#define SwigDoCgocall()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue