diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-10-01 00:37:05 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-10-01 00:37:05 -0700 |
commit | 6524557d85dfb28dbc0d784b91eeb95b47e361cb (patch) | |
tree | 9df6a29a421bc78a583dfe6b4b78dd226dcbf048 /recipes/libxcomp/files | |
parent | 6b061d7fbb3bb105579770e9887099c4d150bcca (diff) | |
download | openembedded-6524557d85dfb28dbc0d784b91eeb95b47e361cb.tar.gz |
libxcomp_3.3.0-3.bb: Fix compilation errors and dont pass -Wnested-externs to g++
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/libxcomp/files')
-rw-r--r-- | recipes/libxcomp/files/use-const-char-pointer.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes/libxcomp/files/use-const-char-pointer.patch b/recipes/libxcomp/files/use-const-char-pointer.patch new file mode 100644 index 0000000000..735e2e3a73 --- /dev/null +++ b/recipes/libxcomp/files/use-const-char-pointer.patch @@ -0,0 +1,35 @@ +Index: nxcomp/Loop.cpp +=================================================================== +--- nxcomp.orig/Loop.cpp ++++ nxcomp/Loop.cpp +@@ -10979,7 +10979,7 @@ int ParsePackOption(const char *opt) + packMethod == PACK_LOSSLESS || + packMethod == PACK_ADAPTIVE) + { +- char *dash = rindex(opt, '-'); ++ const char *dash = rindex(opt, '-'); + + if (dash != NULL && strlen(dash) == 2 && + *(dash + 1) >= '0' && *(dash + 1) <= '9') +Index: nxcomp/configure.in +=================================================================== +--- nxcomp.orig/configure.in ++++ nxcomp/configure.in +@@ -68,7 +68,7 @@ case "${gcc_version}" in + ;; + esac + +-AC_MSG_CHECKING([whether compiler accepts -Wmissing-declarations and -Wnested-externs]) ++AC_MSG_CHECKING([whether compiler accepts -Wmissing-declarations]) + gcc_version=`${CC} --version | grep 'gcc (GCC) [[3-4]].' | head -n 1` + case "${gcc_version}" in + gcc*) +@@ -77,7 +77,7 @@ case "${gcc_version}" in + + *) + AC_MSG_RESULT([yes]) +- CXXFLAGS="$CXXFLAGS -Wmissing-declarations -Wnested-externs" ++ CXXFLAGS="$CXXFLAGS -Wmissing-declarations" + ;; + esac + |