On Wed, Aug 12, 2009 at 5:11 PM, Rich Megginson <rmeggins@redhat.com> wrote:
Nathan Kinder wrote:
On 08/12/2009 08:04 AM, Rich Megginson wrote:
Some minor issues encountered when building pcre on different platforms.
ack.
Thanks - pushed
------------------------------------------------------------------------

------------------------------------------------------------------------


--
389-devel mailing list
389-devel@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-directory-devel

Attention to rely on pkg-config for pcre for cross-platoform, upstream pcre.pc  is wrong for linux because it include in Libs -L${libdir} :

$cat /usr/lib64/pkgconfig/libpcre.pc
# Package Information for pkg-config

prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64
includedir=/usr/include

Name: libpcre
Description: PCRE - Perl compatible regular expressions C library
Version: 7.8
Libs: -L${libdir} -lpcre
Cflags: -I${includedir}

BUT, not every Linux distro as Fedora and RHEL include a local patch a pkgconfig for this problem e.g. with the previous pcre.pc

$pkg-config --libs libpcre
-lpcre


Look at this ref for more detail https://bugzilla.novell.com/show_bug.cgi?id=529921

hth