pseudo: Only build 32 bit lib version if 32 bit development headers are available
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
0025bbb903
commit
bca283671f
|
@ -23,7 +23,7 @@ do_configure () {
|
|||
}
|
||||
|
||||
do_compile () {
|
||||
if [ "${SITEINFO_BITS}" == "64" ]; then
|
||||
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'
|
||||
|
@ -36,7 +36,7 @@ do_compile () {
|
|||
|
||||
do_install () {
|
||||
oe_runmake 'DESTDIR=${D}' 'LIB=lib/pseudo/lib$(MARK64)' install
|
||||
if [ "${SITEINFO_BITS}" == "64" ]; then
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue