opkg-nogpg_svn.bb: link without `-Wl,--as-needed' for nylon
authorMartin Dietze <herbert@spamcop.net>
Sun, 29 Nov 2009 20:20:21 +0000 (21:20 +0100)
committerMartin Dietze <herbert@spamcop.net>
Sun, 29 Nov 2009 20:20:21 +0000 (21:20 +0100)
 * nylon uses a gcc3-based toolchain which does not support this option, thus added an override

recipes/opkg/opkg-nogpg_svn.bb

index 9ddc589..33d9987 100644 (file)
@@ -20,5 +20,8 @@ LDFLAGS_append = " -Wl,--as-needed"
 do_configure_prepend() {
        sed -i -e s:-Werror::g ${S}/libopkg/Makefile.am
 }
+do_configure_prepend_nylon() {
+       LDFLAGS="`echo "$LDFLAGS" | sed "s/ -Wl,--as-needed//"`"
+}
 
 DEFAULT_PREFERENCE = "-1"