Compiled on PI4B4G with 5.10.77-piCore-v8
Compile Flags:
CC='gcc'
CXX='g++'
CPPFLAGS='-DNDEBUG'
CFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto'
CXXFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto'
LDFLAGS="-Wl,-O1"
export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS
Dependencies:
anthy-dev
automake
compiletc
libtool
ibus-dev
ibus-gir
Commands:
# Adjusting system
# fix LTO
P=/usr/local/libexec/gcc/aarch64-unknown-linux-gnu/10.2.0/liblto_plugin.so.0.0.0
sudo mkdir -p /usr/local/lib/bfd-plugins
sudo ln -sfv $P /usr/local/lib/bfd-plugins/liblto_plugin.so
wget --no-check-certificate https://github.com/ibus/ibus-anthy/releases/download/1.5.14/ibus-anthy-1.5.14.tar.gz
tar -xf ibus-anthy-1.5.14.tar.gz
cd ibus-anthy-1.5.14/
./configure --prefix='/usr/local' \
--sysconfdir='/usr/local/etc' \
--libdir='/usr/local/lib' \
--libexecdir='/usr/local/libexec'
# Some of the libtool variablesis empty, the cause is unclear
# If you compile with lto, this has to be done after configuration
# This phenomenon only happens in aarch64
[ "$CFLAGS" = "${CFLAGS/-flto/}" ] || patch -Np1 -i ../libtool-lto-aarch64.patch
time make -j4
real 0m 12.94s
user 0m 12.42s
sys 0m 1.84s
DESTDIR=/tmp/packing-ibus-anthy make install
cd /tmp/packing-ibus-anthy
# schemas
# ibus-anthy has correct schemas
# remove pyc (__pycache__)
find . -type d -name '__pycache__' -exec rm -fr {} +
# strip
strip --strip-unneeded ./usr/local/lib/libanthygobject-1.0.so.5.0.514
# locale
mkdir -p /tmp/packing-ibus-anthy-locale/usr/local/share
mv ./usr/local/share/locale /tmp/packing-ibus-anthy-locale/usr/local/share/
# dev
mkdir -p /tmp/packing-ibus-anthy-dev/usr/local/lib
mv ./usr/local/lib/libanthygobject-1.0.la /tmp/packing-ibus-anthy-dev/usr/local/lib/
mv ./usr/local/include/ /tmp/packing-ibus-anthy-dev/usr/local/
=====================================================================================================================================
IBus-Anthy version 1.5.14
GOBJECT2_CFLAGS -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include
GOBJECT2_LIBS -L/usr/local/lib -lgobject-2.0 -lglib-2.0
ANTHY_PC anthy
ANTHY_CFLAGS -I/usr/local/include
ANTHY_LIBS -L/usr/local/lib -lanthy -lanthydic
ANTHY_GOBJECT_LIBDIR $(libdir)
ANTHY_GOBJECT_GIRDIR $(datadir)/gir-1.0
ANTHY_GOBJECT_TYPELIBSDIR $(libdir)/girepository-1.0
LT_VERSION_INFO 5:514:0
ENV_IBUS_ENGINE
HAVE_PYGTK2_ANTHY no
python /usr/local/bin/python3
Enable python2 no
Enable python3 yes
python-config
PYTHON_CFLAGS
PYTHON_LIBS
ANTHY_ZIPCODE_FILE /usr/local/share/anthy/zipcode.t
KASUMI_EXEC_FILE ${exec_prefix}/bin/kasumi
KASUMI_ICON_FILE ${datarootdir}/pixmaps/kasumi.png
ICON_PREFERENCE preferences-desktop
ON_OFF_KEYS 'Zenkaku_Hankaku', 'Ctrl+J'
HOTKEYS_XML
SYMBOL_XML あ
ICON_PROP_KEY_XML InputMode
LAYOUT_XML jp