summaryrefslogtreecommitdiff
path: root/packages/zlib/zlib_1.2.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/zlib/zlib_1.2.3.bb')
-rw-r--r--packages/zlib/zlib_1.2.3.bb9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/zlib/zlib_1.2.3.bb b/packages/zlib/zlib_1.2.3.bb
index 1d342f51d1..c7a72c9107 100644
--- a/packages/zlib/zlib_1.2.3.bb
+++ b/packages/zlib/zlib_1.2.3.bb
@@ -6,15 +6,18 @@ HOMEPAGE = "http://www.gzip.org/zlib/"
LICENSE = "zlib"
SRC_URI = "http://www.zlib.net/zlib-1.2.3.tar.bz2 \
- file://visibility.patch;patch=1"
+ file://visibility.patch;patch=1 \
+ file://libtool_staging.patch;patch=1"
S = "${WORKDIR}/zlib-${PV}"
+DEPENDS = "libtool-cross"
+
export LDSHARED = "${CC} -shared -Wl,-soname,libz.so.1"
LDFLAGS_append = " -L. -lz"
CFLAGS_prepend = "-fPIC -DZLIB_DLL "
AR_append = " rc"
-EXTRA_OEMAKE = ""
+EXTRA_OEMAKE = " LIBTOOL=${TARGET_SYS}-libtool"
do_compile() {
./configure --prefix=${prefix} --exec_prefix=${exec_prefix} --shared --libdir=${libdir} --includedir=${includedir}
@@ -24,6 +27,8 @@ do_compile() {
do_stage() {
install -m 0644 zlib.h ${STAGING_INCDIR}/zlib.h
install -m 0644 zconf.h ${STAGING_INCDIR}/zconf.h
+
+ mv libz.la ${STAGING_LIBDIR}/
oe_libinstall -a -so libz ${STAGING_LIBDIR}
}