]> granicus.if.org Git - python/commitdiff
In FreeBSD when using ELF, an underscore is needed in front of the
authorGuido van Rossum <guido@python.org>
Wed, 30 Sep 1998 14:34:52 +0000 (14:34 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 30 Sep 1998 14:34:52 +0000 (14:34 +0000)
function name.  (Vladimir Kushnir by way of Thomas Gellekum.)

Python/importdl.c

index 774b7b37a768523720dbc7e2e6147e4351196af9..b542ff5ad2b6947fd432e93d24db69b741a904f3 100644 (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"