diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2012-07-31 01:31:24 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2012-07-31 03:47:15 +0200 |
commit | b980ffb8627595bf6d8a7269fa9035e16aa53f65 (patch) | |
tree | 7c7d7748a7d71798d35e96cc2e557e884df379ba /meta-oe | |
parent | ac717c387aa4bc236ff263ee6086eca0b728d09f (diff) | |
download | meta-openembedded-b980ffb8627595bf6d8a7269fa9035e16aa53f65.tar.gz |
emacs: fix dso build
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-support/emacs/emacs-23.1/fix.dso.build.patch | 39 | ||||
-rw-r--r-- | meta-oe/recipes-support/emacs/emacs_23.1.bb | 4 |
2 files changed, 42 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/emacs/emacs-23.1/fix.dso.build.patch b/meta-oe/recipes-support/emacs/emacs-23.1/fix.dso.build.patch new file mode 100644 index 000000000..0396c0ca4 --- /dev/null +++ b/meta-oe/recipes-support/emacs/emacs-23.1/fix.dso.build.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | from bzr changeset 99307 | ||
4 | |||
5 | === modified file 'ChangeLog' | ||
6 | --- ChangeLog 2010-01-12 05:11:05 +0000 | ||
7 | +++ ChangeLog 2010-01-12 16:25:08 +0000 | ||
8 | @@ -1,3 +1,7 @@ | ||
9 | +2010-01-12 Chong Yidong <cyd@stupidchicken.com> | ||
10 | + | ||
11 | + * configure.in: Explicitly check for and link to -lXrender. | ||
12 | + | ||
13 | 2010-01-12 Glenn Morris <rgm@gnu.org> | ||
14 | |||
15 | * INSTALL.BZR, README: Use bug-gnu-emacs rather than emacs-pretest-bug | ||
16 | |||
17 | === modified file 'configure.in' | ||
18 | --- configure.in 2010-01-04 05:35:18 +0000 | ||
19 | +++ configure.in 2010-01-12 16:25:08 +0000 | ||
20 | @@ -1984,12 +1984,17 @@ | ||
21 | if test "x${with_xft}" != "xno"; then | ||
22 | |||
23 | PKG_CHECK_MODULES(XFT, xft >= 0.13.0, , HAVE_XFT=no) | ||
24 | - if test "$HAVE_XFT" != no; then | ||
25 | + ## Because xftfont.c uses XRenderQueryExtension, we also | ||
26 | + ## need to link to -lXrender. | ||
27 | + HAVE_XRENDER=no | ||
28 | + AC_CHECK_LIB(Xrender, XRenderQueryExtension, HAVE_XRENDER=yes) | ||
29 | + if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then | ||
30 | OLD_CPPFLAGS="$CPPFLAGS" | ||
31 | OLD_CFLAGS="$CFLAGS" | ||
32 | OLD_LIBS="$LIBS" | ||
33 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" | ||
34 | CFLAGS="$CFLAGS $XFT_CFLAGS" | ||
35 | + XFT_LIBS="-lXrender $XFT_LIBS" | ||
36 | LIBS="$XFT_LIBS $LIBS" | ||
37 | AC_CHECK_HEADER(X11/Xft/Xft.h, | ||
38 | AC_CHECK_LIB(Xft, XftFontOpen, HAVE_XFT=yes, , $XFT_LIBS)) | ||
39 | |||
diff --git a/meta-oe/recipes-support/emacs/emacs_23.1.bb b/meta-oe/recipes-support/emacs/emacs_23.1.bb index fe134f805..fa7c872f2 100644 --- a/meta-oe/recipes-support/emacs/emacs_23.1.bb +++ b/meta-oe/recipes-support/emacs/emacs_23.1.bb | |||
@@ -3,6 +3,8 @@ require emacs.inc | |||
3 | SRC_URI = "${GNU_MIRROR}/emacs/emacs-${PV}.tar.gz;name=tarball \ | 3 | SRC_URI = "${GNU_MIRROR}/emacs/emacs-${PV}.tar.gz;name=tarball \ |
4 | file://use-qemu.patch \ | 4 | file://use-qemu.patch \ |
5 | file://nostdlib-unwind.patch \ | 5 | file://nostdlib-unwind.patch \ |
6 | file://configure.in.lost.backslashes.patch" | 6 | file://configure.in.lost.backslashes.patch \ |
7 | file://fix.dso.build.patch \ | ||
8 | " | ||
7 | SRC_URI[tarball.md5sum] = "a620d4452769d04ad8864d662f34f8dd" | 9 | SRC_URI[tarball.md5sum] = "a620d4452769d04ad8864d662f34f8dd" |
8 | SRC_URI[tarball.sha256sum] = "a94cd46301f000d2d1dcd3fd7ef08ad952846d01ca5d4168b4ec3e38e857da47" | 10 | SRC_URI[tarball.sha256sum] = "a94cd46301f000d2d1dcd3fd7ef08ad952846d01ca5d4168b4ec3e38e857da47" |