<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <pre class="moz-signature" cols="72">Kind regards,
Bartosz Woronicz
Engineer, Software Configuration (SCM)
Nokia Networks - PL/Wroclaw</pre>
    <div class="moz-cite-prefix">On 06.05.2016 15:55, EXT Khem Raj
      wrote:<br>
    </div>
    <blockquote
      cite="mid:1C3E490A-CAB1-4487-AED1-5919690AB6D9@gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html;
        charset=us-ascii">
      <br class="">
      <div>
        <blockquote type="cite" class="">
          <div class="">On May 6, 2016, at 1:43 AM, Chris Z. <<a
              moz-do-not-send="true"
              href="mailto:winotu.email@gmail.com" class=""><a class="moz-txt-link-abbreviated" href="mailto:winotu.email@gmail.com">winotu.email@gmail.com</a></a>>
            wrote:</div>
          <br class="Apple-interchange-newline">
          <div class="">
            <div dir="ltr" class="">
              <div class="">Hi,<br class="">
                <br class="">
              </div>
              Any tips ?<br class="">
            </div>
          </div>
        </blockquote>
        <div><br class="">
        </div>
        <div>you need to insert your non-standard install of gcc-4.9 and
          glibc into OE build via BUILD_CFLAGS</div>
        <div>and prepending it to your PATH variable that bitbake will
          see.</div>
      </div>
    </blockquote>
    I use such hack in local.conf<br>
    BUILD_LDFLAGS_append_class-native = "${BB_EXT_ENV_GLIBCXX_RPATH}"<br>
    <br>
    <br>
    where BB_EXT_ENV_GLIBCXX_RPATH is<br>
    <br>
    $ export BB_EXT_ENV_GLIBCXX_RPATH="$(echo "$LD_LIBRARY_PATH" | tr
    ':' '\n' | grep gcc | xargs -I % echo " -Wl,-rpath,%" | tr '\n' '
    ')"<br>
    in my oe-init-buildenv wrapping script<br>
    <blockquote
      cite="mid:1C3E490A-CAB1-4487-AED1-5919690AB6D9@gmail.com"
      type="cite">
      <div><br class="">
        <blockquote type="cite" class="">
          <div class="">
            <div class="gmail_extra"><br class="">
              <div class="gmail_quote">On Fri, Mar 4, 2016 at 4:13 PM,
                Chris Z. <span dir="ltr" class=""><<a
                    moz-do-not-send="true"
                    href="mailto:winotu.email@gmail.com" target="_blank"
                    class=""><a class="moz-txt-link-abbreviated" href="mailto:winotu.email@gmail.com">winotu.email@gmail.com</a></a>></span>
                wrote:<br class="">
                <blockquote class="gmail_quote">
                  <div dir="ltr" class="">
                    <div class="">
                      <div class="">
                        <div class="">
                          <div class="">
                            <div class="">
                              <div class="">Hi,<br class="">
                                <br class="">
                              </div>
                              I have set newer gcc(4.9) in PATH and with
                              proper LD_LIBRARY_PATH. Default system gcc
                              is 4.4.<br class="">
                              <br class="">
                            </div>
                            Bulding cmake-native fails when bootstrap
                            cmake tries to compile cmake native binary.<br
                              class="">
                            <br class="">
                          </div>
                          This is due to the fact that bootstrap was
                          compiled with newer glibcxx and it can't be
                          found in system/host /usr/lib, /usr/lib64 nor
                          in -rpath.<br class="">
                          <br class="">
                        </div>
                        rpath is set to<br class="">
                                               
                        -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \<br
                          class="">
                                               
                        -Wl,-rpath,${STAGING_BASE_LIBDIR_NATIVE} \<br
                          class="">
                        <br class="">
                      </div>
                      from BUILD_LDFLAGS var in bitbake.conf which is
                      expand in native class.<br class="">
                      <br class="">
                    </div>
                    What is the correct approach to fix this ? Or I
                    shouldn't use gcc from PATH for compilation of
                    native packages ?<br class="">
                  </div>
                </blockquote>
              </div>
              <br class="">
            </div>
            -- <br class="">
            _______________________________________________<br class="">
            yocto mailing list<br class="">
            <a moz-do-not-send="true"
              href="mailto:yocto@yoctoproject.org" class="">yocto@yoctoproject.org</a><br
              class="">
            <a class="moz-txt-link-freetext" href="https://lists.yoctoproject.org/listinfo/yocto">https://lists.yoctoproject.org/listinfo/yocto</a><br class="">
          </div>
        </blockquote>
      </div>
      <br class="">
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>