[oe-commits] Martin Dietze : perl-native: removed settings clashing with gcc 3 for nylon * Config_heavy. pl and config.sh contained the gcc flag `-Wdeclaration-after-statement' which broke the build with gcc 3, this is disabled for nylon now

git version control git at git.openembedded.org
Wed May 27 19:51:17 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: f97874313a4eda554d1b833a953b1d5ae154df06
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f97874313a4eda554d1b833a953b1d5ae154df06

Author: Martin Dietze <martin at the-little-red-haired-girl.org>
Date:   Sat May 23 13:29:57 2009 +0200

perl-native: removed settings clashing with gcc 3 for nylon * Config_heavy.pl and config.sh contained the gcc flag `-Wdeclaration-after-statement' which broke the build with gcc 3, this is disabled for nylon now

---

 recipes/perl/perl-native_5.8.8.bb |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/recipes/perl/perl-native_5.8.8.bb b/recipes/perl/perl-native_5.8.8.bb
index e3d7384..57e9e1c 100644
--- a/recipes/perl/perl-native_5.8.8.bb
+++ b/recipes/perl/perl-native_5.8.8.bb
@@ -85,5 +85,11 @@ do_stage_append() {
             install $i ${STAGING_LIBDIR_NATIVE}/perl/${PV}/CORE
         done
 }
+do_stage_append_nylon() {
+        # get rid of definitions not supported by the gcc version we use for nylon...
+        for i in ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy.pl ${STAGING_DIR_HOST}/perl/config.sh; do
+                perl -pi -e 's/-Wdeclaration-after-statement //g' ${i}
+        done
+}
 
 PARALLEL_MAKE = ""





More information about the Openembedded-commits mailing list