From ba6534e0d976a8f7113c78343f2f4e1084e0c65a Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 22 Aug 2013 11:12:11 +0200 Subject: [PATCH] bash: fix cross compilation with a fix from yocto --- .../mkbuiltins_have_stringize.patch.cross | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 shells/bash/mkbuiltins_have_stringize.patch.cross diff --git a/shells/bash/mkbuiltins_have_stringize.patch.cross b/shells/bash/mkbuiltins_have_stringize.patch.cross new file mode 100644 index 000000000..73f5faf97 --- /dev/null +++ b/shells/bash/mkbuiltins_have_stringize.patch.cross @@ -0,0 +1,37 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../bash/mkbuiltins_have_stringize.patch.cross +# Copyright (C) 2013 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +from http://patches.openembedded.org/patch/38919/ and +http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/commit/?id=da0ff91 + +authored by Christopher Larson for yocto + +fixes: +> undefined reference to `xopen' +> undefined reference to `xread' + +when using FORTIFY_SOURCES during cross compilations of bash 4.2 + +--- ./builtins/mkbuiltins.c.orig 2013-08-22 11:01:59.845125909 +0200 ++++ ./builtins/mkbuiltins.c 2013-08-22 11:03:50.113130203 +0200 +@@ -28,6 +28,7 @@ + # define HAVE_STDLIB_H + + # define HAVE_RENAME ++# define HAVE_STRINGIZE + #endif /* CROSS_COMPILING */ + + #if defined (HAVE_UNISTD_H)