* prefix-args were built with target compiler but later executed in host
environment, older emacs versions used prefix-args from qemu, but this
part was missing in emacs23.1-use-qemu.patch
* Paul Fertser suggested that prefix-args should be built with host
compiler instead and then without need to use qemu-arm
* When there is no libc.so in ${STAGING_DIR_TARGET}, which is copied to
treedir, then it tries to use libc.so from host, which is wrong.
Added something like angstrom-libc-fixup-hack.bb but for treedir.
* Also add dbus to DEPENDS to make sure configure finds it for bindings.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
require emacs.inc
# full X (non-diet) is needed for X support
-DEPENDS += "gtk+ libungif"
+DEPENDS += "gtk+ libungif dbus"
+
+PR = "r1"
EXTRA_OECONF = "--without-sound --with-x-toolkit=gtk"
if [ -f ${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.so.* ]; then
cp -pPR ${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.so.* $treedir/lib
fi
+ # stupid hack, but without it, it tries to use /usr/lib/libc.so from host and fails
+ # temacs: error while loading shared libraries: /usr/lib/libc.so: ELF file version does not match current one
+ if [ ! -f $treedir/lib/libc.so ]; then
+ ln -s libc.so.6 $treedir/lib/libc.so
+ fi
}
EXTRA_OEMAKE += 'QEMU="${QEMU}"'
===================================================================
--- emacs-23.1.orig/src/Makefile.in
+++ emacs-23.1/src/Makefile.in
+@@ -497,7 +497,7 @@
+ this with the shell''s ``for'' construct.
+ Note that some people do not have '.' in their paths, so we must
+ use ./prefix-args. */
+-#define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
++#define YMF_PASS_LDFLAGS(flags) `${QEMU} ./prefix-args -Xlinker flags`
+ #else
+ #define YMF_PASS_LDFLAGS(flags) flags
+ #endif
@@ -895,9 +895,9 @@ LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(L
#endif