]> git.openpandora.org Git - openembedded.git/commitdiff
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 9a6e47453edfe3b2ef190f61b5c3b88f468bf90a..0f1e0d1fee697ea0eaeeb3e2c037407e316faebc 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 3cc962da01883b945a3236a09d6eda16dd76bedd..505b2bec9e7d3ecbf16c2375302196e6b65859ac 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 \