mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
ghostscript: fix endianness detection
[ CQID: WIND00394747 ] The original patch removes endianness detection completely, causing lcms to be built against the wrong endian. Instead, pass the correct endian through the recipe using SITEINFO_ENDIANNESS. (From OE-Core rev: 0a07ec7d13becc7ce87c502e75a006300a7090a5) Signed-off-by: Jesse Zhang <sen.zhang@windriver.com> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
858646c7bd
commit
981bd3a297
@@ -15,7 +15,7 @@ SECTION = "console/utils"
|
||||
LICENSE = "GPLv3"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=c5326026692dbed183f0558f926580f8"
|
||||
|
||||
PR = "r5"
|
||||
PR = "r6"
|
||||
|
||||
DEPENDS = "ghostscript-native tiff jpeg fontconfig cups"
|
||||
DEPENDS_class-native = ""
|
||||
@@ -63,6 +63,13 @@ do_configure_prepend () {
|
||||
if [ -e ${WORKDIR}/objarch.h ]; then
|
||||
cp ${WORKDIR}/objarch.h obj/arch.h
|
||||
fi
|
||||
if [ ${SITEINFO_ENDIANNESS} = "le" ]; then
|
||||
export LCMS_BIGENDIAN="0"
|
||||
export LCMS2_BIGENDIAN="0"
|
||||
else
|
||||
export LCMS_BIGENDIAN="1"
|
||||
export LCMS2_BIGENDIAN="1"
|
||||
fi
|
||||
}
|
||||
|
||||
do_configure_append () {
|
||||
|
||||
Reference in New Issue
Block a user