autoconf: changed the sizeof patch a little bit;
authorFrans Meulenbroeks <fransmeulenbroeks@yahoo.com>
Sat, 1 Jul 2006 10:20:28 +0000 (10:20 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sat, 1 Jul 2006 10:20:28 +0000 (10:20 +0000)
gcc 4.1.1 optimisations would cause this to fail
this patch makes sure x is referenced and cannot be optimised away

packages/autoconf/autoconf-2.59/sizeof_types.patch
packages/autoconf/autoconf_2.59.bb

index 9a6e474..0f1e0d1 100644 (file)
@@ -36,7 +36,7 @@
 +[
 +if test "$AS_TR_SH([ac_cv_type_$1])" = yes; then
 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$3])],
-+                 [static const $1 x[[256]];])],
++                 [extern void dummy($1); static const $1 x[[256]]; dummy(x);])],
 +                 [
 +                   AS_TR_SH([ac_cv_sizeof_$1])=`$SIZE conftest.$ac_objext | tail -n 1 | $AWK '{print [$]3/256}'`
 +                 ],
index 3cc962d..505b2be 100644 (file)
@@ -6,7 +6,7 @@ SECTION = "devel"
 DEPENDS += "m4-native"
 RDEPENDS_${PN} = "m4 gnu-config"
 RRECOMMENDS_${PN} = "automake"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.bz2 \
           file://program_prefix.patch;patch=1 \