From bd246d9a4b143fa5766e9b2d86676d35971ecef6 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sat, 9 Sep 2006 17:55:19 +0000 Subject: pcre: attempt to repair the damage introduced --- packages/libpcre/libpcre_4.4.bb | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'packages') diff --git a/packages/libpcre/libpcre_4.4.bb b/packages/libpcre/libpcre_4.4.bb index 9974e85806..f26b595894 100644 --- a/packages/libpcre/libpcre_4.4.bb +++ b/packages/libpcre/libpcre_4.4.bb @@ -10,12 +10,15 @@ PR = "r1" SRC_URI = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${PV}.tar.bz2" S = "${WORKDIR}/pcre-${PV}" +PARALLEL_MAKE = "" + inherit autotools binconfig LEAD_SONAME = "libpcre.so" CFLAGS_append = " -D_REENTRANT" EXTRA_OECONF = " --with-link-size=2 --enable-newline-is-lf --with-match-limit=10000000" + do_compile () { ${BUILD_CC} -DLINK_SIZE=2 -I${S}/include -c dftables.c ${BUILD_CC} dftables.o -o dftables @@ -23,11 +26,20 @@ do_compile () { } do_stage () { - oe_libinstall -a -so libpcreposix ${STAGING_LIBDIR} - oe_libinstall -a -so libpcre ${STAGING_LIBDIR} - install -m 0644 pcre.h ${STAGING_INCDIR}/ - install -m 0644 pcreposix.h ${STAGING_INCDIR}/ + # Force all -L(dir) output to be prepended with the staging libdir to stop libtool + # from trying to link to host libraries. + sed -i 's:-L\$:-L${STAGING_LIBDIR} -L\$:' ${S}/*libtool + + oe_libinstall -a -so libpcre ${STAGING_LIBDIR} + oe_libinstall -a -so libpcreposix ${STAGING_LIBDIR} + install -m 0644 pcre.h ${STAGING_INCDIR}/ + install -m 0644 pcreposix.h ${STAGING_INCDIR}/ + + # pcreposix linked originally to the libpcre in it's working directory. That messed + # the .la file up. I fix this manually here: + sed -i 's:${S}:${STAGING_LIBDIR}:' ${STAGING_LIBDIR}/libpcreposix.la } + FILES_${PN} = "${libdir}/lib*.so*" FILES_${PN}-dev += "${bindir}" -- cgit v1.2.3