In FreeBSD when using ELF, an underscore is needed in front of the

function name.  (Vladimir Kushnir by way of Thomas Gellekum.)
This commit is contained in:
Guido van Rossum 1998-09-30 14:34:52 +00:00
parent e504fa289f
commit 65f15d435e
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ typedef void (*dl_funcptr)();
extern char *Py_GetProgramName();
#ifndef FUNCNAME_PATTERN
#if defined(__hp9000s300) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__BORLANDC__)
#if defined(__hp9000s300) || defined(__NetBSD__) || defined(__FreeBSD__) && !defined(__ELF__) || defined(__OpenBSD__) || defined(__BORLANDC__)
#define FUNCNAME_PATTERN "_init%.200s"
#else
#define FUNCNAME_PATTERN "init%.200s"