Do not prepend "_" to the symbol name for dlsym() on ELF architectures.

Fixes plugins loading; tested by swelter@mus.ch
Bump PKGNAME for this change
This commit is contained in:
pvalchev 2002-07-07 17:12:48 +00:00
parent b064a31906
commit 41e14dcbaf
2 changed files with 23 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.19 2001/11/15 23:17:59 jakob Exp $
# $OpenBSD: Makefile,v 1.20 2002/07/07 17:12:48 pvalchev Exp $
COMMENT= "RFC 2222 SASL (Simple Authentication and Security Layer)"
DISTNAME= cyrus-sasl-1.5.27
PKGNAME= ${DISTNAME}p1
CATEGORIES= security
NEED_VERSION= 1.491
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-lib_dlopen_c,v 1.1 2002/07/07 17:12:48 pvalchev Exp $
--- lib/dlopen.c.orig Sat Jul 6 13:21:05 2002
+++ lib/dlopen.c Sat Jul 6 13:22:13 2002
@@ -158,7 +158,7 @@ int _sasl_get_plugin(const char *file,
int flag;
void *library;
void *entry_point;
-#if __OpenBSD__
+#if defined(__OpenBSD__) && !defined(__ELF__)
char adj_entryname[1024];
#else
#define adj_entryname entryname
@@ -179,7 +179,7 @@ int _sasl_get_plugin(const char *file,
return SASL_FAIL;
}
-#if __OpenBSD__
+#if defined(__OpenBSD__) && !defined(__ELF__)
snprintf(adj_entryname, sizeof adj_entryname, "_%s", entryname);
#endif