openbsd-ports/graphics/sane-backends/patches/patch-backend_dll_c
kurt f43edc19fa - fix build on macppc by using the correct define for a tmpnam(3) buffer
w/debugging help from drahn@
- remove "libtool --finish" which messed up the shared library directories
- remove obsolete mandir fix
libtool/mandir fixes from naddy@. okay mantainer and naddy@
2006-08-14 12:55:30 +00:00

22 lines
750 B
Plaintext

$OpenBSD: patch-backend_dll_c,v 1.2 2006/08/14 12:55:30 kurt Exp $
--- backend/dll.c.orig Sat Feb 4 17:36:05 2006
+++ backend/dll.c Tue Aug 8 22:50:50 2006
@@ -394,7 +394,7 @@ load (struct backend *be)
# define PREFIX ""
# define POSTFIX ".dll"
# else
-# define POSTFIX ".so.%u"
+# define POSTFIX ".so"
# endif
mode = getenv ("LD_BIND_NOW") ? RTLD_NOW : RTLD_LAZY;
#elif defined(HAVE_SHL_LOAD)
@@ -456,7 +456,7 @@ load (struct backend *be)
(be->name)+2, V_MAJOR);
#else
snprintf (libname, sizeof (libname), "%s/" PREFIX "%s" POSTFIX,
- dir, be->name, V_MAJOR);
+ dir, be->name);
#endif
DBG (4, "load: trying to load `%s'\n", libname);
fp = fopen (libname, "r");