summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in1
-rw-r--r--dln.c8
2 files changed, 2 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index 3bb7fb7..e2eb15d 100644
--- a/configure.in
+++ b/configure.in
@@ -3983,6 +3983,7 @@ AC_SUBST(SYMBOL_PREFIX)
AC_SUBST(MINIOBJS)
AC_SUBST(THREAD_MODEL)
AC_SUBST(PLATFORM_DIR)
+AC_DEFINE_UNQUOTED(EXPORT_PREFIX, "$EXPORT_PREFIX")
firstmf=`echo $FIRSTMAKEFILE | sed 's/:.*//'`
firsttmpl=`echo $FIRSTMAKEFILE | sed 's/.*://'`
diff --git a/dln.c b/dln.c
index 355cec1..aa1e622 100644
--- a/dln.c
+++ b/dln.c
@@ -106,13 +106,7 @@ dln_loaderror(const char *format, ...)
# define USE_DLN_DLOPEN
#endif
-#ifndef FUNCNAME_PATTERN
-# if defined(__hp9000s300) || ((defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)) && !defined(__ELF__)) || defined(__BORLANDC__) || defined(NeXT) || defined(__WATCOMC__) || defined(MACOSX_DYLD)
-# define FUNCNAME_PREFIX "_Init_"
-# else
-# define FUNCNAME_PREFIX "Init_"
-# endif
-#endif
+#define FUNCNAME_PREFIX EXPORT_PREFIX"Init_"
#if defined __CYGWIN__ || defined DOSISH
#define isdirsep(x) ((x) == '/' || (x) == '\\')