> [..]
> > This was done for simplicity. The target does not work and it also
> > includes netbsd and solaris, and that's how it was done before. This
> > is not mean to be submitted anyways, but if you really want it I will
> > prepare a diff and send it to you.
>
> Yeah, NetBSD uses the POSIX target because it handles shared libraries
> different. OpenBSD does shared libraries the sun way. That's why there
> was a target for Solaris and OpenBSD. I'll give it a look as soon as I
> fire up my notebook with OpenBSD again.
I mean mirbsd and solaris. Anyway, diff below, but I'm not sure whether
that should be commited.
> > As I said in the email, they're already submitted (one already
> > commited). Thanks,
>
> Sorry, didn't see that.
Well, there is one of the diffs that was not submitted, but was done by
someone else. i will ask that person to do it.
Anyways, let's move this out from ports and continue privately if you
want.
f.-
--- m4/buildsys.m4.orig Thu Mar 13 22:19:27 2008
+++ m4/buildsys.m4 Mon Mar 31 16:01:43 2008
@@ -72,7 +72,7 @@ AC_DEFUN([BUILDSYS_SHARED_LIB], [
UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i
${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib
${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib'
CLEAN_LIB=''
;;
- *-*-solaris* | *-openbsd-* | *-mirbsd-*)
+ *-*-solaris* | *-mirbsd-*)
AC_MSG_RESULT(Solaris)
LIB_CPPFLAGS='-DPIC'
LIB_CFLAGS='-fPIC'
@@ -85,6 +85,21 @@ AC_DEFUN([BUILDSYS_SHARED_LIB], [
PLUGIN_SUFFIX='.so'
INSTALL_LIB='${INSTALL} -m 755 $$i
${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f
${DESTDIR}${libdir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR}
${DESTDIR}${libdir}/$$i'
UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i
${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}'
+ CLEAN_LIB=''
+ ;;
+ *-openbsd*)
+ AC_MSG_RESULT(Solaris)
+ LIB_CPPFLAGS='-DPIC'
+ LIB_CFLAGS='-fPIC'
+ LIB_LDFLAGS='-shared -fPIC -Wl,-soname,${LIB}'
+ LIB_PREFIX='lib'
+ LIB_SUFFIX='.so'
+ PLUGIN_CPPFLAGS='-DPIC'
+ PLUGIN_CFLAGS='-fPIC'
+ PLUGIN_LDFLAGS='-shared -fPIC'
+ PLUGIN_SUFFIX='.so'
+ INSTALL_LIB='${INSTALL} -m 755 $$i
${DESTDIR}${libdir}/$$i'
+ UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i'
CLEAN_LIB=''
;;
*-*-cygwin | *-*-mingw32)