<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 11/29/2013 02:56 PM, Carl Worth
      wrote:<br>
    </div>
    <blockquote cite="mid:87siueg6ko.fsf@yoom.home.cworth.org"
      type="cite">
      <pre wrap="">

Finally, I am interested in folding in the approach from glaze into fips
directly. A couple of things have kept me back so far, (which might just
be my own bugs as opposed to any fault in the actual approach). One is
that the LD_LIBRARY_PATH-based approach fails when an application has
rpath, (which, hopefully won't be a problem for much packaged or
shipping software, but does often happen with software compiled on a
developer's system).


</pre>
    </blockquote>
    <br>
    I saw this in <a
      href="http://en.wikipedia.org/wiki/Rpath#The_role_of_GNU_ld">Wikipedia</a>;
    would that help? (didn't look into other platforms)<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <h3 style="color: rgb(0, 0, 0); background-image: none;
      background-color: rgb(255, 255, 255); font-weight: bold; margin:
      0px 0px 0.3em; overflow: hidden; padding-top: 0.5em;
      padding-bottom: 0.17em; border-bottom-style: none; font-size:
      17px; font-family: sans-serif; font-style: normal; font-variant:
      normal; letter-spacing: normal; line-height: 19.1875px; orphans:
      auto; text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-position: initial
      initial; background-repeat: initial initial;"><span
        class="mw-headline" id="The_role_of_GNU_ld">The role of GNU ld</span><span
        class="mw-editsection" style="-webkit-user-select: none;
        font-size: small; font-weight: normal; margin-left: 1em;
        vertical-align: baseline; line-height: 1em; display:
        inline-block; white-space: nowrap; padding-right: 0.25em;
        unicode-bidi: -webkit-isolate;"><span
          class="mw-editsection-bracket">[</span><a
href="http://en.wikipedia.org/w/index.php?title=Rpath&action=edit&section=3"
          title="Edit section: The role of GNU ld"
          style="text-decoration: none; color: rgb(11, 0, 128);
          background-image: none; background-position: initial initial;
          background-repeat: initial initial;">edit</a><span
          class="mw-editsection-bracket">]</span></span></h3>
    <p style="margin: 0.4em 0px 0.5em; line-height: 19.1875px; color:
      rgb(0, 0, 0); font-family: sans-serif; font-size: 13px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">The GNU Linker (GNU ld)
      implements a feature which it calls "new-dtags":<span
        class="Apple-converted-space"></span><sup id="cite_ref-2"
        class="reference" style="line-height: 1em; unicode-bidi:
        -webkit-isolate; font-weight: normal; font-style: normal;"><a
          href="http://en.wikipedia.org/wiki/Rpath#cite_note-2"
          style="text-decoration: none; color: rgb(11, 0, 128);
          background-image: none; white-space: nowrap;
          background-position: initial initial; background-repeat:
          initial initial;"><span></span><span></span></a></sup></p>
    <p style="margin: 0.4em 0px 0.5em; line-height: 19.1875px; color:
      rgb(0, 0, 0); font-family: sans-serif; font-size: 13px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">If the new-dtags feature is
      enabled in the linker (at run time using<span
        class="Apple-converted-space"> </span><code style="font-family:
        monospace, Courier; background-color: rgb(249, 249, 249);">--enable-new-dtags</code>),
      GNU<span class="Apple-converted-space"> </span><code
        style="font-family: monospace, Courier; background-color:
        rgb(249, 249, 249);">ld</code>, besides setting the<span
        class="Apple-converted-space"> </span><code style="font-family:
        monospace, Courier; background-color: rgb(249, 249, 249);">DT_RPATH</code>
      attribute, also sets the<span class="Apple-converted-space"> </span><code
        style="font-family: monospace, Courier; background-color:
        rgb(249, 249, 249);">DT_RUNPATH</code><span
        class="Apple-converted-space"> </span>attribute to the same
      string. At run time, if the dynamic linker finds a<span
        class="Apple-converted-space"> </span><code style="font-family:
        monospace, Courier; background-color: rgb(249, 249, 249);">DT_RUNPATH</code><span
        class="Apple-converted-space"> </span>attribute, it ignores the
      value of the<span class="Apple-converted-space"> </span><code
        style="font-family: monospace, Courier; background-color:
        rgb(249, 249, 249);">DT_RPATH</code><span
        class="Apple-converted-space"> </span>attribute, with the effect
      that<span class="Apple-converted-space"> </span><code
        style="font-family: monospace, Courier; background-color:
        rgb(249, 249, 249);">LD_LIBRARY_PATH</code><span
        class="Apple-converted-space"> </span>is checked next and the
      paths in the<span class="Apple-converted-space"> </span><code
        style="font-family: monospace, Courier; background-color:
        rgb(249, 249, 249);">DT_RUNPATH </code>attribute are only
      searched<span class="Apple-converted-space"> </span><i>after</i><span
        class="Apple-converted-space"> </span>it.</p>
    <p style="margin: 0.4em 0px 0.5em; line-height: 19.1875px; color:
      rgb(0, 0, 0); font-family: sans-serif; font-size: 13px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">This means that in such
      configurations, the paths in<span class="Apple-converted-space"> </span><code
        style="font-family: monospace, Courier; background-color:
        rgb(249, 249, 249);">LD_LIBRARY_PATH</code><span
        class="Apple-converted-space"> </span>are searched before those
      given at link time using<span class="Apple-converted-space"> </span><code
        style="font-family: monospace, Courier; background-color:
        rgb(249, 249, 249);">-rpath</code><span
        class="Apple-converted-space"> </span>if<span
        class="Apple-converted-space"> </span><code style="font-family:
        monospace, Courier; background-color: rgb(249, 249, 249);">--enable-new-dtags</code><span
        class="Apple-converted-space"> </span>was active.</p>
    <br>
    <br>
    <br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
  </body>
</html>