diff options
Diffstat (limited to 'meta/packages/xorg-lib/libx11.inc')
-rw-r--r-- | meta/packages/xorg-lib/libx11.inc | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/meta/packages/xorg-lib/libx11.inc b/meta/packages/xorg-lib/libx11.inc index f4f52fdf7e..8245cd1d08 100644 --- a/meta/packages/xorg-lib/libx11.inc +++ b/meta/packages/xorg-lib/libx11.inc | |||
@@ -9,15 +9,19 @@ LEAD_SONAME = "libX11.so" | |||
9 | EXTRA_OECONF += "--with-keysymdef=${STAGING_INCDIR}/X11/keysymdef.h" | 9 | EXTRA_OECONF += "--with-keysymdef=${STAGING_INCDIR}/X11/keysymdef.h" |
10 | 10 | ||
11 | do_compile() { | 11 | do_compile() { |
12 | cd ${S}/src/util | ||
13 | mv makekeys.c.orig makekeys.c || true | ||
14 | touch makekeys-makekeys.o | ||
12 | ( | 15 | ( |
13 | unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS | 16 | unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS |
14 | cd src/util; | 17 | ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys |
15 | mv makekeys.c.orig makekeys.c || true | 18 | ) |
16 | touch makekeys-makekeys.o ; ${BUILD_CC} ${BUILD_CFLAGS} -I${STAGING_INCDIR_NATIVE} makekeys.c -o makekeys | 19 | if [ "$?" != "0" ]; then |
17 | # mv to stop it getting rebuilt | 20 | exit 1 |
18 | mv makekeys.c makekeys.c.orig | 21 | fi |
19 | cd ../../ | 22 | # mv to stop it getting rebuilt |
20 | ) || exit 1 | 23 | mv makekeys.c makekeys.c.orig |
24 | cd ${S} | ||
21 | oe_runmake | 25 | oe_runmake |
22 | } | 26 | } |
23 | 27 | ||