summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-09-10 02:05:26 +0000
committerJamie Lenehan <lenehan@twibble.org>2006-09-10 02:05:26 +0000
commit33166e78814f0664ded6d77db75b67b619c0d687 (patch)
tree8c9d932efded8eae2a74fa8aa5e63ae19f602205
parent203af4b3f91a024b809bc81065f8c66ad6049246 (diff)
parentbd246d9a4b143fa5766e9b2d86676d35971ecef6 (diff)
merge of '38a08f997602a09b164ab9864452b19c00f8ceed'
and 'c6bcfdb59d3237f59868cab3ac70dcc8c36efa5a'
-rw-r--r--packages/libpcre/libpcre_4.4.bb20
1 files changed, 16 insertions, 4 deletions
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}"