summaryrefslogtreecommitdiff
path: root/packages/autoconf/autoconf-2.59
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@yahoo.com>2006-07-01 10:20:28 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-07-01 10:20:28 +0000
commit22c0c4f6a815bd0554821f24acf5e979f3da0722 (patch)
tree78737f45608d0aa8fc6661d6d76ef2f042646c8f /packages/autoconf/autoconf-2.59
parent06a933e4b57759fe9924a4a66aedbb71e9112d1d (diff)
autoconf: changed the sizeof patch a little bit;
gcc 4.1.1 optimisations would cause this to fail this patch makes sure x is referenced and cannot be optimised away
Diffstat (limited to 'packages/autoconf/autoconf-2.59')
-rw-r--r--packages/autoconf/autoconf-2.59/sizeof_types.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/autoconf/autoconf-2.59/sizeof_types.patch b/packages/autoconf/autoconf-2.59/sizeof_types.patch
index 9a6e47453e..0f1e0d1fee 100644
--- a/packages/autoconf/autoconf-2.59/sizeof_types.patch
+++ b/packages/autoconf/autoconf-2.59/sizeof_types.patch
@@ -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}'`
+ ],