Subject: CVS commit: pkgsrc/security/cyrus-sasl2
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 08/06/2004 06:36:19
Module Name:	pkgsrc
Committed By:	jlam
Date:		Fri Aug  6 06:36:18 UTC 2004

Modified Files:
	pkgsrc/security/cyrus-sasl2: Makefile distinfo
Added Files:
	pkgsrc/security/cyrus-sasl2/patches: patch-ap patch-aq patch-ar
	    patch-as

Log Message:
There is no way for libtool to generate a convenience library that
can be used to create shared libraries _and_ be linked into a statically
linked program.  Instead of trying to hack libtool to do this, just
accept the fact and do what you want another way!

Remove the ugly hack in sasldb/Makefile.am that regenerated the static
archive from the non-PIC object files.  While this was fine for linking
into programs, it breaks things when you link this into the sasldb
plugin.  Leaving it the other way, where the static archive from the
PIC object files, is also unacceptable because there are potential
problems on some platforms when linking an archive of of PIC objects
into an executable.  The solution: let the static archive contain PIC
objects and be used to link into the sasldb plugin, but for the programs
in the utils directory, explicitly add the non-PIC object files listed
in $(SASL_DB_BACKEND_STATIC) to the files used to generate the programs.
This is easy because SASL_DB_BACKEND_STATIC is already generated
properly by config/sasldb.m4, so make use if it.

This should fix problems with using Cyrus SASL on non-i386 platforms
noted in PR pkg/26492 by Matt Dainty.  Bump the PKGREVISION.


To generate a diff of this commit:
cvs rdiff -r1.35 -r1.36 pkgsrc/security/cyrus-sasl2/Makefile
cvs rdiff -r1.20 -r1.21 pkgsrc/security/cyrus-sasl2/distinfo
cvs rdiff -r0 -r1.4 pkgsrc/security/cyrus-sasl2/patches/patch-ap \
    pkgsrc/security/cyrus-sasl2/patches/patch-as
cvs rdiff -r0 -r1.1 pkgsrc/security/cyrus-sasl2/patches/patch-aq \
    pkgsrc/security/cyrus-sasl2/patches/patch-ar

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.