From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 2/3] proxy-libintl_20080418.bb: Build shared library instead of static.
Date: Mon, 14 Sep 2009 23:41:15 -0700 [thread overview]
Message-ID: <1252996876-782-2-git-send-email-raj.khem@gmail.com> (raw)
In-Reply-To: <1252996876-782-1-git-send-email-raj.khem@gmail.com>
* with libint.a the link order matters and generally for uclibc
targets we append -lintl to LDFLAGS and sometime it gets specified
before the objects and symbols do not get pulled in. Better we
generate shared object so the linking order does not matter
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
recipes/proxy-libintl/proxy-libintl_20080418.bb | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/recipes/proxy-libintl/proxy-libintl_20080418.bb b/recipes/proxy-libintl/proxy-libintl_20080418.bb
index dbe7b92..6c625d6 100644
--- a/recipes/proxy-libintl/proxy-libintl_20080418.bb
+++ b/recipes/proxy-libintl/proxy-libintl_20080418.bb
@@ -5,16 +5,18 @@ LICENSE = "LGPL"
PR = "r1"
PROVIDES = "virtual/libintl"
-
+LEAD_SONAME = "libintl.so"
SRC_URI = " \
http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/${PN}-${PV}.zip \
file://stub-only.patch;patch=1 \
+ file://create-as-shared-lib.patch;patch=1 \
"
S = "${WORKDIR}"
-FILES_${PN}-dev = "${includedir} ${libdir}"
+FILES_${PN}-dev = "${includedir}"
+FILES_${PN} = "${libdir}/libintl.so"
CFLAGS_append = " -Wall -I ../../include ${@['-DSTUB_ONLY', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']}"
@@ -32,15 +34,13 @@ do_install() {
install -d ${D}/usr/lib
install -m 0644 ${WORKDIR}/include/libintl.h ${D}/${includedir}
- install -m 0644 ${WORKDIR}/lib/libintl.a ${D}/${libdir}
+ install -m 0644 ${WORKDIR}/lib/libintl.so ${D}/${libdir}
}
do_stage() {
install -m 0644 ${WORKDIR}/include/libintl.h ${STAGING_INCDIR}/
- oe_libinstall -a -C lib libintl ${STAGING_LIBDIR}/
+ oe_libinstall -a -so -C lib libintl ${STAGING_LIBDIR}/
}
-
-
--
1.6.3.3
next prev parent reply other threads:[~2009-09-15 6:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-15 6:41 [PATCH 1/3] preferred-xorg-versions-X11R7.4.inc: Lock PREFERRED_VERSION_dri2proto ?= "1.1" Khem Raj
2009-09-15 6:41 ` Khem Raj [this message]
2009-09-15 6:41 ` [PATCH 3/3] minimal.conf: Set PREFERRED_VERSION of glib to 2.21.4 Khem Raj
2009-09-15 8:17 ` Phil Blundell
2009-09-15 7:57 ` [PATCH 2/3] proxy-libintl_20080418.bb: Build shared library instead of static Phil Blundell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1252996876-782-2-git-send-email-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox