diff options
| -rw-r--r-- | meta/recipes-devtools/perl/perl_5.12.3.bb | 16 |
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 |
