diff options
author | Matthew McClintock <msm@freescale.com> | 2012-09-27 20:33:14 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-02 17:10:35 +0100 |
commit | 6e8d68de7fd4991545caa8aae5edc55a8be53701 (patch) | |
tree | ea70a75e2b62aaacd660545b200fd3a954c87a17 /meta/recipes-graphics | |
parent | be8dd82ce98da6caa0ba2ac0394ab68518a578cc (diff) | |
download | poky-6e8d68de7fd4991545caa8aae5edc55a8be53701.tar.gz |
libx11.inc: fix build issues for older CentOS distros
Fixes these sorts of issues present on older gcc (CentOS 5.x in this case)
| cc1: error: unrecognized command line option "-Werror=implicit"
| cc1: error: unrecognized command line option "-Werror=nonnull"
| cc1: error: unrecognized command line option "-Werror=init-self"
| cc1: error: unrecognized command line option "-Werror=main"
| cc1: error: unrecognized command line option "-Werror=missing-braces"
| cc1: error: unrecognized command line option "-Werror=sequence-point"
| cc1: error: unrecognized command line option "-Werror=return-type"
| cc1: error: unrecognized command line option "-Werror=trigraphs"
| cc1: error: unrecognized command line option "-Werror=array-bounds"
| cc1: error: unrecognized command line option "-Werror=write-strings"
| cc1: error: unrecognized command line option "-Werror=address"
| cc1: error: unrecognized command line option "-Werror=int-to-pointer-cast"
| cc1: error: unrecognized command line option "-Werror=pointer-to-int-cast"
Also fixes:
makekeys-makekeys.o: In function `main':
makekeys.c:(.text+0x85): undefined reference to `__isoc99_sscanf'
makekeys.c:(.text+0xa7): undefined reference to `__isoc99_sscanf'
collect2: ld returned 1 exit status
make: *** [makekeys] Error 1
Older libc do not have this defined, we can use the -D_GNU_SOURCE
to the compiler to prevent generating calls to this function and
make linking work
(From OE-Core rev: 83c560ae282c1a28fd2c311c66debd02a69f1678)
Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/xorg-lib/libx11.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libx11.inc b/meta/recipes-graphics/xorg-lib/libx11.inc index 3ecd9e50b3..97bd1c20fa 100644 --- a/meta/recipes-graphics/xorg-lib/libx11.inc +++ b/meta/recipes-graphics/xorg-lib/libx11.inc | |||
@@ -11,7 +11,7 @@ inherit siteinfo | |||
11 | FILESPATH = "${FILE_DIRNAME}/libx11" | 11 | FILESPATH = "${FILE_DIRNAME}/libx11" |
12 | 12 | ||
13 | PE = "1" | 13 | PE = "1" |
14 | INC_PR = "r8" | 14 | INC_PR = "r9" |
15 | 15 | ||
16 | PROVIDES = "virtual/libx11" | 16 | PROVIDES = "virtual/libx11" |
17 | 17 | ||
@@ -23,6 +23,7 @@ DEPENDS += "xproto xextproto xtrans libxcb kbproto inputproto" | |||
23 | DEPENDS += "xproto-native" | 23 | DEPENDS += "xproto-native" |
24 | 24 | ||
25 | EXTRA_OECONF += "--with-keysymdefdir=${STAGING_INCDIR}/X11/" | 25 | EXTRA_OECONF += "--with-keysymdefdir=${STAGING_INCDIR}/X11/" |
26 | EXTRA_OEMAKE += 'CWARNFLAGS=""' | ||
26 | 27 | ||
27 | # Let people with incredibly archaic requirements enable Xcms and BigFont, but | 28 | # Let people with incredibly archaic requirements enable Xcms and BigFont, but |
28 | # disable them by default. | 29 | # disable them by default. |
@@ -33,7 +34,7 @@ PACKAGECONFIG[bigfont] = "--enable-xf86bigfont,--disable-xf86bigfont,xf86bigfont | |||
33 | # src/util/makekeys needs to be compiled natively, so tell it what compiler to | 34 | # src/util/makekeys needs to be compiled natively, so tell it what compiler to |
34 | # use. | 35 | # use. |
35 | export CC_FOR_BUILD = "${BUILD_CC}" | 36 | export CC_FOR_BUILD = "${BUILD_CC}" |
36 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | 37 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS} -D_GNU_SOURCE" |
37 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" | 38 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" |
38 | export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}" | 39 | export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}" |
39 | 40 | ||