<?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 Shared libraries path in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Shared-libraries-path/m-p/746948#M4653</link>
    <description>How come on my Mac OS X, when I create a dylib file and run my executable it knows to look ion the same folder for the dylib, but on Linux when it looks for the .so it does not know where to look for it?</description>
    <pubDate>Wed, 02 Jun 2010 16:49:22 GMT</pubDate>
    <dc:creator>Brian_Allison</dc:creator>
    <dc:date>2010-06-02T16:49:22Z</dc:date>
    <item>
      <title>Shared libraries path</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Shared-libraries-path/m-p/746948#M4653</link>
      <description>How come on my Mac OS X, when I create a dylib file and run my executable it knows to look ion the same folder for the dylib, but on Linux when it looks for the .so it does not know where to look for it?</description>
      <pubDate>Wed, 02 Jun 2010 16:49:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Shared-libraries-path/m-p/746948#M4653</guid>
      <dc:creator>Brian_Allison</dc:creator>
      <dc:date>2010-06-02T16:49:22Z</dc:date>
    </item>
    <item>
      <title>Shared libraries path</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Shared-libraries-path/m-p/746949#M4654</link>
      <description>It's generally considered undesirable (vulnerable to malicious hacks) to include current directory in PATH and LD_LIBRARY_PATH by default (at least under bash, which often is the default shell). You can read further about this by starting up your search engine.</description>
      <pubDate>Wed, 02 Jun 2010 17:02:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Shared-libraries-path/m-p/746949#M4654</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-06-02T17:02:08Z</dc:date>
    </item>
    <item>
      <title>Shared libraries path</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Shared-libraries-path/m-p/746950#M4655</link>
      <description>&lt;P&gt;As tim18 said, the current directory shouldn't be added to the $PATH, and some commands even enforce the rule (e.g., find). The $LD_LIBRARY_PATH is expected to be used for compilation purposes only, but its use is discouraged at runtime.&lt;/P&gt;&lt;P&gt;However, the directory in which the executable lies can be added to the runtime path during the linking. You can make the compiler pass it as an option to the linker, with the following flags:&lt;/P&gt;&lt;P&gt;-Wl,-z,origin -Wl,-rpath,\$ORIGIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2010 03:29:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Shared-libraries-path/m-p/746950#M4655</guid>
      <dc:creator>John4</dc:creator>
      <dc:date>2010-06-03T03:29:08Z</dc:date>
    </item>
  </channel>
</rss>

