diff options
author | Mark Hatle <Mark.Hatle@windriver.com> | 2010-08-06 06:54:38 -0700 |
---|---|---|
committer | Mark Hatle <Mark.Hatle@windriver.com> | 2010-08-06 06:56:03 -0700 |
commit | 2c2e5dc14677c0c10cf1eaedb7207be58a2ec4cb (patch) | |
tree | 4142d6a8669c1445d4939975c551ca845eca2f95 /meta/packages | |
parent | 4e2c84f6b4d200e35afc7fff1b39de85afb480af (diff) | |
download | poky-2c2e5dc14677c0c10cf1eaedb7207be58a2ec4cb.tar.gz |
pseudo: Enable dual 32-bit and 64-bit support
On an x86_64 host, both 32-bit and 64-bit libraries need to be generated.
It is fairly common that a user will have at least a few 32-bit programs
on their x86_64 host system, so a pseudo wrapper for 32-bit is required
to allow those programs to be successfully wrapped.
Signed-off-by: Mark Hatle <Mark.Hatle@windriver.com>
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/pseudo/pseudo_git.bb | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/meta/packages/pseudo/pseudo_git.bb b/meta/packages/pseudo/pseudo_git.bb index 78d1720501..020c8380b4 100644 --- a/meta/packages/pseudo/pseudo_git.bb +++ b/meta/packages/pseudo/pseudo_git.bb | |||
@@ -6,7 +6,7 @@ LICENSE = "LGPL2.1" | |||
6 | DEPENDS = "sqlite3" | 6 | DEPENDS = "sqlite3" |
7 | 7 | ||
8 | PV = "0.0+git${SRCPV}" | 8 | PV = "0.0+git${SRCPV}" |
9 | PR = "r11" | 9 | PR = "r12" |
10 | 10 | ||
11 | SRC_URI = "git://github.com/wrpseudo/pseudo.git;protocol=git \ | 11 | SRC_URI = "git://github.com/wrpseudo/pseudo.git;protocol=git \ |
12 | file://static_sqlite.patch" | 12 | file://static_sqlite.patch" |
@@ -19,15 +19,27 @@ S = "${WORKDIR}/git" | |||
19 | inherit siteinfo | 19 | inherit siteinfo |
20 | 20 | ||
21 | do_configure () { | 21 | do_configure () { |
22 | ${S}/configure --prefix=${prefix} --with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --bits=${SITEINFO_BITS} | 22 | : |
23 | } | 23 | } |
24 | 24 | ||
25 | do_compile () { | 25 | do_compile () { |
26 | oe_runmake 'LIB=lib/pseudo/lib' | 26 | if [ "${SITEINFO_BITS}" == "64" ]; then |
27 | # We need the 32-bit libpseudo on a 64-bit machine... | ||
28 | ./configure --prefix=${prefix} --with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --bits=32 | ||
29 | oe_runmake 'CFLAGS=-m32' 'LIB=lib/pseudo/lib' | ||
30 | # prevent it from removing the lib, but keep everything else | ||
31 | make 'LIB=foo' distclean | ||
32 | fi | ||
33 | ${S}/configure --prefix=${prefix} --with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --bits=${SITEINFO_BITS} | ||
34 | oe_runmake 'LIB=lib/pseudo/lib$(MARK64)' | ||
27 | } | 35 | } |
28 | 36 | ||
29 | do_install () { | 37 | do_install () { |
30 | oe_runmake 'DESTDIR=${D}' 'LIB=lib/pseudo/lib' install | 38 | oe_runmake 'DESTDIR=${D}' 'LIB=lib/pseudo/lib$(MARK64)' install |
39 | if [ "${SITEINFO_BITS}" == "64" ]; then | ||
40 | mkdir -p ${D}${prefix}/lib/pseudo/lib | ||
41 | cp lib/pseudo/lib/libpseudo.so ${D}${prefix}/lib/pseudo/lib/. | ||
42 | fi | ||
31 | } | 43 | } |
32 | 44 | ||
33 | BBCLASSEXTEND = "native" | 45 | BBCLASSEXTEND = "native" |