<?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: Libraries in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/libraries/m-p/3151802#M900982</link>
    <description>there is no way to do that unless you have access to the source code and the development environment.&lt;BR /&gt;&lt;BR /&gt;if you can say why this is required, some alternatives may come up.</description>
    <pubDate>Wed, 24 Dec 2003 23:44:07 GMT</pubDate>
    <dc:creator>ranganath ramachandra</dc:creator>
    <dc:date>2003-12-24T23:44:07Z</dc:date>
    <item>
      <title>Libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/libraries/m-p/3151799#M900979</link>
      <description>How do I make a set of libraries shared that were not originally not configured as shared?</description>
      <pubDate>Tue, 23 Dec 2003 12:20:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/libraries/m-p/3151799#M900979</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-23T12:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/libraries/m-p/3151800#M900980</link>
      <description>You need to identify the development system before this can be answered with any detail. I'll answer as though you were using the aCC compiler but others will be very similar.&lt;BR /&gt;&lt;BR /&gt;1) Compile each object as position independent code (PIC); for aCC that is the +z option.&lt;BR /&gt;&lt;BR /&gt;aCC +z -c module1.c&lt;BR /&gt;aCC +z -c module2.c&lt;BR /&gt;aCC +z -c module3.c&lt;BR /&gt;&lt;BR /&gt;The -c option tells aCC not to invoke the link editor (ld) phase and simply creat unlinked object files (module1.o, module2.o, module3.o).&lt;BR /&gt;&lt;BR /&gt;2) Now invoke aCC using the -b option to create a shared library and -o to name the library output file.&lt;BR /&gt;&lt;BR /&gt;aCC -b -o mymodules.sl module1.o module2.o module3.o.&lt;BR /&gt;&lt;BR /&gt;The steps are similar in whatever development system you are using.&lt;BR /&gt;&lt;BR /&gt;The arguments for the ANSI C compiler are also the same; simply replace aCC with cc.&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Dec 2003 15:22:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/libraries/m-p/3151800#M900980</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-12-23T15:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/libraries/m-p/3151801#M900981</link>
      <description>I still don't know enough to understand that responce. I think I'm using gcc.</description>
      <pubDate>Tue, 23 Dec 2003 15:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/libraries/m-p/3151801#M900981</guid>
      <dc:creator>Ceaser123</dc:creator>
      <dc:date>2003-12-23T15:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/libraries/m-p/3151802#M900982</link>
      <description>there is no way to do that unless you have access to the source code and the development environment.&lt;BR /&gt;&lt;BR /&gt;if you can say why this is required, some alternatives may come up.</description>
      <pubDate>Wed, 24 Dec 2003 23:44:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/libraries/m-p/3151802#M900982</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2003-12-24T23:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/libraries/m-p/3151803#M900983</link>
      <description>You can only do that if the objects in the original library are already compiled with +Z or +z (or when compiled with gcc with -fpic or -fPIC)&lt;BR /&gt;&lt;BR /&gt;Asuming that is the case, you do not need a C compiler to convert the libs:&lt;BR /&gt;&lt;BR /&gt;# cd /your/path/to/lib&lt;BR /&gt;# mkdir tmp&lt;BR /&gt;# cd tmp&lt;BR /&gt;# ar x ../libxxx.a&lt;BR /&gt;# ld -b -o ../liborg.sl *.o&lt;BR /&gt;# cd ..&lt;BR /&gt;# rm -rf tmp&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 25 Dec 2003 03:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/libraries/m-p/3151803#M900983</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-12-25T03:59:17Z</dc:date>
    </item>
  </channel>
</rss>

