diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-09 12:13:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-09 12:13:24 +0100 |
commit | bca283671f74b79394e9c332b790e5ed0dc44f35 (patch) | |
tree | ccb70239fab8dd80798a7d720db7a82d712f4db9 | |
parent | 0025bbb903f6c4c30540d7b2d6a54d90645ca514 (diff) | |
download | openembedded-core-bca283671f74b79394e9c332b790e5ed0dc44f35.tar.gz openembedded-core-bca283671f74b79394e9c332b790e5ed0dc44f35.tar.bz2 openembedded-core-bca283671f74b79394e9c332b790e5ed0dc44f35.zip |
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.bb | 18 |
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 () { } do_compile () { - if [ "${SITEINFO_BITS}" == "64" ]; then - # We need the 32-bit libpseudo on a 64-bit machine... - ./configure --prefix=${prefix} --with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --bits=32 - oe_runmake 'CFLAGS=-m32' 'LIB=lib/pseudo/lib' - # prevent it from removing the lib, but keep everything else - make 'LIB=foo' distclean + if [ "${SITEINFO_BITS}" == "64" -a -e "/usr/include/gnu/stubs-32.h" -a "${PN}" == "pseudo-native" ]; then + # We need the 32-bit libpseudo on a 64-bit machine... + ./configure --prefix=${prefix} --with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --bits=32 + oe_runmake 'CFLAGS=-m32' 'LIB=lib/pseudo/lib' + # prevent it from removing the lib, but keep everything else + make 'LIB=foo' distclean fi ${S}/configure --prefix=${prefix} --with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --bits=${SITEINFO_BITS} oe_runmake 'LIB=lib/pseudo/lib$(MARK64)' @@ -36,9 +36,9 @@ do_compile () { do_install () { oe_runmake 'DESTDIR=${D}' 'LIB=lib/pseudo/lib$(MARK64)' install - if [ "${SITEINFO_BITS}" == "64" ]; then - mkdir -p ${D}${prefix}/lib/pseudo/lib - cp lib/pseudo/lib/libpseudo.so ${D}${prefix}/lib/pseudo/lib/. + if [ "${SITEINFO_BITS}" == "64" -a -e "/usr/include/gnu/stubs-32.h" -a "${PN}" == "pseudo-native" ]; then + mkdir -p ${D}${prefix}/lib/pseudo/lib + cp lib/pseudo/lib/libpseudo.so ${D}${prefix}/lib/pseudo/lib/. fi } |