<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: linking using $ORIGIN or +origin in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/linking-using-origin-or-origin/m-p/3859707#M98308</link>
    <description>&amp;gt;(posted to HP-UX -&amp;gt; general).&lt;BR /&gt;&lt;BR /&gt;You may want to subscribe to the HPUX-DEVTOOLS mailing list:&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/comm/comm_Community_Home_IDX/1,1273,,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/comm/comm_Community_Home_IDX/1,1273,,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Looking at the man page it suggests that $ORIGIN be used instead of +origin.  It has -Wl,+B,$ORIGIN and:&lt;BR /&gt;&lt;BR /&gt;    For more details on $ORIGIN, use the +help option or see the HP-UX Linker and Libraries User's Guide.&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-90730/B2355-90730.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-90730/B2355-90730.html&lt;/A&gt;</description>
    <pubDate>Fri, 08 Sep 2006 20:50:40 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2006-09-08T20:50:40Z</dc:date>
    <item>
      <title>linking using $ORIGIN or +origin</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linking-using-origin-or-origin/m-p/3859706#M98307</link>
      <description>&lt;!--!*#--&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;(posted to HP-UX -&amp;gt; general but no news, so here may be the right place).&lt;BR /&gt;&lt;BR /&gt;I'm trying to link my binaries so that I don't have to rely on SHLIB_PATH and a wrapper script at startup, My binaries depends on a lot of shared objects that will be at a defined path in the install tree.&lt;BR /&gt;&lt;BR /&gt;bash-3.00$ cd myInstallTree&lt;BR /&gt;bash-3.00$ tree ./&lt;BR /&gt;./&lt;BR /&gt;|-- bin&lt;BR /&gt;|   `-- mybin&lt;BR /&gt;`-- lib&lt;BR /&gt;    |-- 3rdparty&lt;BR /&gt;    |   `-- libz.sl&lt;BR /&gt;    `-- libA.sl&lt;BR /&gt;&lt;BR /&gt;Under Linux and Solaris you can use the $ORIGIN variable, giving this to the linker &lt;BR /&gt;&lt;BR /&gt;-Wl,-rpath -Wl,\$$ORIGIN/../lib # (from a Linux Makefile)&lt;BR /&gt;&lt;BR /&gt;I saw in the HP-UX ld manpage that a +origin option is available, but I cannot figure out how to use it according to my needs.&lt;BR /&gt;&lt;BR /&gt;Any ideas ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Benjamin.&lt;BR /&gt;&lt;BR /&gt;ps:&lt;BR /&gt;It's on HP-UX 11.00.</description>
      <pubDate>Fri, 08 Sep 2006 18:35:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linking-using-origin-or-origin/m-p/3859706#M98307</guid>
      <dc:creator>bsergean</dc:creator>
      <dc:date>2006-09-08T18:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: linking using $ORIGIN or +origin</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linking-using-origin-or-origin/m-p/3859707#M98308</link>
      <description>&amp;gt;(posted to HP-UX -&amp;gt; general).&lt;BR /&gt;&lt;BR /&gt;You may want to subscribe to the HPUX-DEVTOOLS mailing list:&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/comm/comm_Community_Home_IDX/1,1273,,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/comm/comm_Community_Home_IDX/1,1273,,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Looking at the man page it suggests that $ORIGIN be used instead of +origin.  It has -Wl,+B,$ORIGIN and:&lt;BR /&gt;&lt;BR /&gt;    For more details on $ORIGIN, use the +help option or see the HP-UX Linker and Libraries User's Guide.&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-90730/B2355-90730.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-90730/B2355-90730.html&lt;/A&gt;</description>
      <pubDate>Fri, 08 Sep 2006 20:50:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linking-using-origin-or-origin/m-p/3859707#M98308</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-09-08T20:50:40Z</dc:date>
    </item>
  </channel>
</rss>

