summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-03-31 20:56:35 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-28 10:44:38 +0100
commitbffd29b0da0925cb6335440b0121746bab7d3686 (patch)
treee19b79bd0b1bc9f121cd7e398aa3b21d63a72372 /meta/recipes-devtools
parent78cb6b1baa09e22d5640f20abf03fa589ecf6054 (diff)
downloadpoky-bffd29b0da0925cb6335440b0121746bab7d3686.tar.gz
perl_5.12.2.bb: Undefine features not found in uclibc
(From OE-Core rev: 75fea9d4064985de26316021e0fc4fd81fa341ef) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/perl/perl_5.12.3.bb16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.12.3.bb b/meta/recipes-devtools/perl/perl_5.12.3.bb
index 584d64368d..07b8eacb3f 100644
--- a/meta/recipes-devtools/perl/perl_5.12.3.bb
+++ b/meta/recipes-devtools/perl/perl_5.12.3.bb
@@ -134,6 +134,12 @@ do_configure() {
134 -e "s,\(getnetent_r_proto=\)'\w+',\1'0',g" \ 134 -e "s,\(getnetent_r_proto=\)'\w+',\1'0',g" \
135 -e "s,\(d_sockatmark=\)'define',\1'undef',g" \ 135 -e "s,\(d_sockatmark=\)'define',\1'undef',g" \
136 -e "s,\(d_sockatmarkproto=\)'\w+',\1'0',g" \ 136 -e "s,\(d_sockatmarkproto=\)'\w+',\1'0',g" \
137 -e "s,\(d_eaccess=\)'define',\1'undef',g" \
138 -e "s,\(d_stdio_ptr_lval=\)'define',\1'undef',g" \
139 -e "s,\(d_stdio_ptr_lval_sets_cnt=\)'define',\1'undef',g" \
140 -e "s,\(d_stdiobase=\)'define',\1'undef',g" \
141 -e "s,\(d_stdstdio=\)'define',\1'undef',g" \
142 -e "s,-fstack-protector,-fno-stack-protector,g" \
137 config.sh-${TARGET_ARCH}-${TARGET_OS} 143 config.sh-${TARGET_ARCH}-${TARGET_OS}
138 fi 144 fi
139 145
@@ -148,6 +154,16 @@ do_configure() {
148 -e 's,/perl5,/perl,g' \ 154 -e 's,/perl5,/perl,g' \
149 config.sh-${TARGET_ARCH}-${TARGET_OS} 155 config.sh-${TARGET_ARCH}-${TARGET_OS}
150 156
157 case "${TARGET_ARCH}" in
158 x86_64 | powerpc | s390)
159 sed -i -e "s,\(need_va_copy=\)'undef',\1'define',g" \
160 config.sh-${TARGET_ARCH}-${TARGET_OS}
161 ;;
162 arm)
163 sed -i -e "s,\(d_u32align=\)'undef',\1'define',g" \
164 config.sh-${TARGET_ARCH}-${TARGET_OS}
165 ;;
166 esac
151 # These are strewn all over the source tree 167 # These are strewn all over the source tree
152 for foo in `grep -I -m1 \/usr\/include\/.*\\.h ${WORKDIR}/* -r | cut -f 1 -d ":"` ; do 168 for foo in `grep -I -m1 \/usr\/include\/.*\\.h ${WORKDIR}/* -r | cut -f 1 -d ":"` ; do
153 echo Fixing: $foo 169 echo Fixing: $foo