summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-09 12:13:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-09 12:13:24 +0100
commitbca283671f74b79394e9c332b790e5ed0dc44f35 (patch)
treeccb70239fab8dd80798a7d720db7a82d712f4db9
parent0025bbb903f6c4c30540d7b2d6a54d90645ca514 (diff)
downloadpoky-bca283671f74b79394e9c332b790e5ed0dc44f35.tar.gz
pseudo: Only build 32 bit lib version if 32 bit development headers are available
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--meta/packages/pseudo/pseudo_git.bb18
1 files changed, 9 insertions, 9 deletions
diff --git a/meta/packages/pseudo/pseudo_git.bb b/meta/packages/pseudo/pseudo_git.bb
index 020c8380b4..d393967ceb 100644
--- a/meta/packages/pseudo/pseudo_git.bb
+++ b/meta/packages/pseudo/pseudo_git.bb
@@ -23,12 +23,12 @@ do_configure () {
23} 23}
24 24
25do_compile () { 25do_compile () {
26 if [ "${SITEINFO_BITS}" == "64" ]; then 26 if [ "${SITEINFO_BITS}" == "64" -a -e "/usr/include/gnu/stubs-32.h" -a "${PN}" == "pseudo-native" ]; then
27 # We need the 32-bit libpseudo on a 64-bit machine... 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 28 ./configure --prefix=${prefix} --with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --bits=32
29 oe_runmake 'CFLAGS=-m32' 'LIB=lib/pseudo/lib' 29 oe_runmake 'CFLAGS=-m32' 'LIB=lib/pseudo/lib'
30 # prevent it from removing the lib, but keep everything else 30 # prevent it from removing the lib, but keep everything else
31 make 'LIB=foo' distclean 31 make 'LIB=foo' distclean
32 fi 32 fi
33 ${S}/configure --prefix=${prefix} --with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --bits=${SITEINFO_BITS} 33 ${S}/configure --prefix=${prefix} --with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --bits=${SITEINFO_BITS}
34 oe_runmake 'LIB=lib/pseudo/lib$(MARK64)' 34 oe_runmake 'LIB=lib/pseudo/lib$(MARK64)'
@@ -36,9 +36,9 @@ do_compile () {
36 36
37do_install () { 37do_install () {
38 oe_runmake 'DESTDIR=${D}' 'LIB=lib/pseudo/lib$(MARK64)' install 38 oe_runmake 'DESTDIR=${D}' 'LIB=lib/pseudo/lib$(MARK64)' install
39 if [ "${SITEINFO_BITS}" == "64" ]; then 39 if [ "${SITEINFO_BITS}" == "64" -a -e "/usr/include/gnu/stubs-32.h" -a "${PN}" == "pseudo-native" ]; then
40 mkdir -p ${D}${prefix}/lib/pseudo/lib 40 mkdir -p ${D}${prefix}/lib/pseudo/lib
41 cp lib/pseudo/lib/libpseudo.so ${D}${prefix}/lib/pseudo/lib/. 41 cp lib/pseudo/lib/libpseudo.so ${D}${prefix}/lib/pseudo/lib/.
42 fi 42 fi
43} 43}
44 44