<?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: Creating a shared object in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113424#M446441</link>
    <description>Sorry about not creating a new thread -- I wanted you specifically to respond, so I wasn't sure if you would see my new thread otherwise.  I will do that for sure next time.&lt;BR /&gt;&lt;BR /&gt;As for your suggestion, I actually tried to use -l:, but it didn't work.  I suspect this is because of the last sentence in the following excerpt from a doc on ld:&lt;BR /&gt;&lt;BR /&gt;-l: library    Search the library specified. Similar to the -l option except the current state of the -a option is not important. The library name must contain the prefix lib and end with a suffix of .a or .sl.&lt;BR /&gt;&lt;BR /&gt;I got this from:&lt;BR /&gt;&lt;A href="http://www.informatik.uni-frankfurt.de/doc/man/hpux/ld.1.html" target="_blank"&gt;http://www.informatik.uni-frankfurt.de/doc/man/hpux/ld.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think it will only look for .a or .sl...&lt;BR /&gt;</description>
    <pubDate>Tue, 09 Dec 2008 03:42:32 GMT</pubDate>
    <dc:creator>Vineet K. Aggarwal</dc:creator>
    <dc:date>2008-12-09T03:42:32Z</dc:date>
    <item>
      <title>Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113396#M446413</link>
      <description>Hi,&lt;BR /&gt;I have to create a shared object (so) on HP-UX.&lt;BR /&gt;I already have a Makefile that does it for all the other unix platforms (aix, linux, solaris) &lt;BR /&gt;1. what should to make it work on HP?&lt;BR /&gt;2. can one of you give me a working and small example for a Makefile that creates a shared object?&lt;BR /&gt;&lt;BR /&gt;tx,&lt;BR /&gt;shlom</description>
      <pubDate>Wed, 11 Jun 2008 06:41:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113396#M446413</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-11T06:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113397#M446414</link>
      <description>on pa-risc shared library are designed as .sl files and on integrity servers as .so files&lt;BR /&gt;you can refer to this external link to find examples of compile and linking options&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.franz.com/support/documentation/current/doc/foreign-functions.htm#ff-on-hp-1" target="_blank"&gt;http://www.franz.com/support/documentation/current/doc/foreign-functions.htm#ff-on-hp-1&lt;/A&gt;</description>
      <pubDate>Wed, 11 Jun 2008 06:54:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113397#M446414</guid>
      <dc:creator>Fabien GUTIERREZ</dc:creator>
      <dc:date>2008-06-11T06:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113398#M446415</link>
      <description>&lt;!--!*#--&gt;On HP-UX these are called shared libraries.&lt;BR /&gt;Here is the Linker Online Help:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/11782/LinkerOnliinehelp0709/creatingandusinglibraries.htm" target="_blank"&gt;http://docs.hp.com/en/11782/LinkerOnliinehelp0709/creatingandusinglibraries.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Creating shlibs is pretty simple:&lt;BR /&gt;libfoo.so: foo.o&lt;BR /&gt;   $(CC) -b -o $@ foo.o&lt;BR /&gt;&lt;BR /&gt;foo.o: foo.c&lt;BR /&gt;   $(CC) -c foo.c&lt;BR /&gt;&lt;BR /&gt;If you are on PA, change to ".sl" and add +z to the compile line.</description>
      <pubDate>Wed, 11 Jun 2008 07:56:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113398#M446415</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-11T07:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113399#M446416</link>
      <description>hi dennis,&lt;BR /&gt;tx again for your answers.&lt;BR /&gt;&lt;BR /&gt;Sorry for the beginner questions - I still new to this platforms... &lt;BR /&gt;1. how do I know if I'm working on PA? when I run uname -a I get: "HP-UX hpux B.11.23 U 9000/800 3697136004 unlimited-user license"&lt;BR /&gt;&lt;BR /&gt;2. When I add +Z to the compile command I get: "gcc: +Z: No such file or directory"&lt;BR /&gt;&lt;BR /&gt;3. In your example:&lt;BR /&gt;- you put "-b" what this option stands for?&lt;BR /&gt;- should I used also "-shared"?&lt;BR /&gt;&lt;BR /&gt;As you see, I'm a little confused here - if you make it simple for me I will be grateful.&lt;BR /&gt;&lt;BR /&gt;my gcc is: (gcc -v)&lt;BR /&gt;Using built-in specs.&lt;BR /&gt;Target: hppa2.0w-hp-hpux11.23&lt;BR /&gt;Configured with: ../gcc/configure&lt;BR /&gt;Thread model: posix&lt;BR /&gt;gcc version 4.2.2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tx!!!&lt;BR /&gt;shlom&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2008 09:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113399#M446416</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-11T09:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113400#M446417</link>
      <description>&amp;gt;1. how do I know if I'm working on PA? when I run uname -a I get: "HP-UX hpux B.11.23 U 9000/800&lt;BR /&gt;&lt;BR /&gt;This is PA.  Otherwise it says ia64 for Integrity.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. When I add +Z to the compile command I get: "gcc: +Z: No such file or directory"&lt;BR /&gt;&amp;gt;my gcc is:&lt;BR /&gt;&lt;BR /&gt;Ah, you are using a foreign devil compiler.&lt;BR /&gt;You need -fpic.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;- you put "-b" what this option stands for?&lt;BR /&gt;&amp;gt;- should I used also "-shared"?&lt;BR /&gt;&lt;BR /&gt;-b is the linker and HP's compiler option to create shlibs.&lt;BR /&gt;Yes, replace by -shared for gcc.</description>
      <pubDate>Wed, 11 Jun 2008 10:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113400#M446417</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-11T10:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113401#M446418</link>
      <description>so, &lt;BR /&gt;after we both know what I'm working on,pls see the reason I got confused&lt;BR /&gt;when I use the following:&lt;BR /&gt;"$(CC) -shared -fpic -o $@ $(OBJ) ...", I get this weird msg:&lt;BR /&gt;/usr/ccs/bin/ld: CODE_ONE_SYM fixup to non-code subspace in file /home/s/import/so/TestSo/TestSo/debug/HPUX-Risc/test.o - shared library must be position independent. Use +z or +Z to recompile.&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;&lt;BR /&gt;so? how can I prevent this?&lt;BR /&gt;&lt;BR /&gt;tx</description>
      <pubDate>Wed, 11 Jun 2008 10:21:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113401#M446418</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-11T10:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113402#M446419</link>
      <description>&amp;gt;ld: CODE_ONE_SYM fixup to non-code subspace in file test.o - shared library must be position independent. Use +z or +Z to recompile.&lt;BR /&gt;&amp;gt;how can I prevent this?&lt;BR /&gt;&lt;BR /&gt;Was test.o compiled with -fpic?</description>
      <pubDate>Wed, 11 Jun 2008 10:29:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113402#M446419</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-11T10:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113403#M446420</link>
      <description>tx dennis,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;yes - the object did compile with the -fpic!!!&lt;BR /&gt;1. I succeeded create the sample so (the small one) - but the big one still doesn't work (even with the -fPIC)&lt;BR /&gt;&lt;BR /&gt;2. another question:&lt;BR /&gt;after knowing how to generate a shared object, what is the standard for its extension? should I use ".sl" instead of ".so"&lt;BR /&gt;&lt;BR /&gt;tx</description>
      <pubDate>Wed, 11 Jun 2008 12:16:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113403#M446420</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-11T12:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113404#M446421</link>
      <description>&amp;gt;yes - the object did compile with the -fpic!!&lt;BR /&gt;&lt;BR /&gt;That's not what the linker says.  So either you didn't or gcc is broken.&lt;BR /&gt;If you want to attach a copy of test.o, I can look at it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;1. but the big one still doesn't work&lt;BR /&gt;&lt;BR /&gt;The above linker error?  Or something else?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. what is the standard for its extension? should I use ".sl" instead of ".so"&lt;BR /&gt;&lt;BR /&gt;On PA you use .sl.  On IPF you use .sl.</description>
      <pubDate>Thu, 12 Jun 2008 02:44:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113404#M446421</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-12T02:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113405#M446422</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;1. After I added -fpic to both compilation and linkage the test shared object was created!!!&lt;BR /&gt;&lt;BR /&gt;2. The big program that I mentioned before is my real shared object (not the tester)that I have to create - here is the error I get:&lt;BR /&gt;/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "CClassName::~CClassName()" in input file "/home/s/lib_somelib.a(Someobject.o)"&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;this is the first time I get such error - any idea? is it something to do with the extenal lib that is linked with the shared object? any idea?&lt;BR /&gt;&lt;BR /&gt;3. when I run file on the tester shared object I get the following result:&lt;BR /&gt;"libtest.so:PA-RISC2.0 shared library -not stripped" - I think it's ok - what do say?&lt;BR /&gt;&lt;BR /&gt;4. according to what you said before, I will have to change the extesion to "sl" - don't I?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tx a lot!&lt;BR /&gt;shlom&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:18:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113405#M446422</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-12T06:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113406#M446423</link>
      <description>&amp;gt;ld: Invalid loader fixup in text space needed in output file for symbol "CClassName::~CClassName()" in Someobject.o&lt;BR /&gt;&lt;BR /&gt;This the same missing PIC option or g++ is broken.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;is it something to do with the external lib that is linked with the shared object?&lt;BR /&gt;&lt;BR /&gt;Probably not.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;libtest.so: PA-RISC2.0 shared library&lt;BR /&gt;&amp;gt; I think it's ok&lt;BR /&gt;&lt;BR /&gt;Yes, this is fine&lt;BR /&gt;&lt;BR /&gt;&amp;gt;4. I will have to change the extension to "sl" - don't I?&lt;BR /&gt;&lt;BR /&gt;You don't "have" to but it is a good idea.&lt;BR /&gt;Otherwise ld won't find it with -ltest without extra work.</description>
      <pubDate>Thu, 12 Jun 2008 06:44:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113406#M446423</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-12T06:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113407#M446424</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;about the PIC/pic:&lt;BR /&gt;-------------------&lt;BR /&gt;is there any difference between "-fPIC" to "-fpic"?</description>
      <pubDate>Thu, 12 Jun 2008 10:13:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113407#M446424</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-12T10:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113408#M446425</link>
      <description>&amp;gt;is there any difference between "-fPIC" to "-fpic"?&lt;BR /&gt;&lt;BR /&gt;There is a difference between +z and +Z, it is possible that gcc has the same?&lt;BR /&gt;&lt;BR /&gt;Basically +Z is needed for load modules that have lots of symbols.  You only need it if the linker runs out of short addressing space for the linkage table.</description>
      <pubDate>Thu, 12 Jun 2008 21:30:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113408#M446425</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-12T21:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113409#M446426</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As I mentioned before I succeeded in compiling and linking my simple tester and create the sl.&lt;BR /&gt;But when I tried to link it with another lib (archive) I failed unless I add "-fpic" also to this lib compilation.&lt;BR /&gt;1. Is this ok?!&lt;BR /&gt;2. Does it mean that all the libraries that should be linked with the shared object must be compiled also with "-fpic"?&lt;BR /&gt;3. Another fact I not sure of:&lt;BR /&gt; when I used GCC_PATH=`gcc -print-file-name=libstdc++.a" I still fail. BUT when GCC_PATH=-lstdc++ it works!&lt;BR /&gt;&lt;BR /&gt;tx in advance!&lt;BR /&gt;</description>
      <pubDate>Sun, 15 Jun 2008 12:53:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113409#M446426</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-15T12:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113410#M446427</link>
      <description>&amp;gt;But when I tried to link it with another lib (archive) I failed unless I add "-fpic" also to this lib compilation.&lt;BR /&gt;&amp;gt;2. Does it mean that all the libraries that should be linked with the shared lib must be compiled also with "-fpic"?&lt;BR /&gt;&lt;BR /&gt;Yes, ALL objects in a shlib must be compiled as PIC.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;3. Another fact I not sure of: when I used GCC_PATH=`gcc -print-file-name=libstdc++.a" I still fail. BUT when GCC_PATH=-lstdc++ it works!&lt;BR /&gt;&lt;BR /&gt;No clue, What was GCC_PATH set too?  Go with what works.</description>
      <pubDate>Sun, 15 Jun 2008 13:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113410#M446427</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-15T13:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113411#M446428</link>
      <description>tx again.&lt;BR /&gt;&lt;BR /&gt;so, for using this shared object:&lt;BR /&gt;&lt;BR /&gt;I have object libmytest.sl&lt;BR /&gt;I need to create some exe that uses this shared lib.&lt;BR /&gt;&lt;BR /&gt;1. should I put this on /usr/lib/ or there is another standard in HP?&lt;BR /&gt;&lt;BR /&gt;2. should I set LD_LIBRARY_PATH to this location - or there are some equivaent environment variable for the linker to search for shared objects?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 15 Jun 2008 13:43:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113411#M446428</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-15T13:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113412#M446429</link>
      <description>and also important:&lt;BR /&gt;&lt;BR /&gt;the link line:&lt;BR /&gt;&lt;BR /&gt;gcc  -o tester -ltestmyso -L$(BUILD_DIR) $(OBJ)-lpthread&lt;BR /&gt;&lt;BR /&gt;is this ok??&lt;BR /&gt;&lt;BR /&gt;tx.</description>
      <pubDate>Sun, 15 Jun 2008 13:51:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113412#M446429</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-15T13:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113413#M446430</link>
      <description>&amp;gt;1. should I put this on /usr/lib/ or there is another standard in HP?&lt;BR /&gt;&lt;BR /&gt;That's the PA HP-UX default for HP's products.&lt;BR /&gt;There is no reason you can't put your stuff there.  But you could also put your shlib with your executable or some parallel lib/ directory.  It may depend on how many executables use that shlib and if they are all in the same directory structure.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. should I set LD_LIBRARY_PATH to this location - or there are some equivalent environment variable for the linker to search for shared libs?&lt;BR /&gt;&lt;BR /&gt;For PA32, you need to use SHLIB_PATH for dld to find it.  Or you can hardcode the path at link time with -Wl,+b,path.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;the link line: gcc -ltestmyso -L$(BUILD_DIR) $(OBJ)-lpthread&lt;BR /&gt;&amp;gt;is this ok??&lt;BR /&gt;&lt;BR /&gt;You need a space between "$(OBJ)" and -lpthread.&lt;BR /&gt;And -L should come before its -llibs.</description>
      <pubDate>Sun, 15 Jun 2008 14:09:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113413#M446430</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-15T14:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113414#M446431</link>
      <description>tx again.&lt;BR /&gt;&lt;BR /&gt;finally my sample works well also with external libs!!! so this is a good progress.&lt;BR /&gt;&lt;BR /&gt;now.. back to the real project:&lt;BR /&gt;I need to find a way (if exists) to make my so link with no errors with minimal changes =&amp;gt; instead of changing all the libs Makefiles (that my slib needs) to use "-fpic" &lt;BR /&gt;=&amp;gt; can I put some linker flag in my sl makefile that makes it link well?! (if I don't have a choice, I will so this change only for HPUX but this is the last option)&lt;BR /&gt;&lt;BR /&gt;tx</description>
      <pubDate>Sun, 15 Jun 2008 14:20:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113414#M446431</guid>
      <dc:creator>devshlom</dc:creator>
      <dc:date>2008-06-15T14:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shared object</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113415#M446432</link>
      <description>&amp;gt;I need to find a way to make my so link with no errors with minimal changes =&amp;gt; instead of changing all the libs Makefiles (that my slib needs) to use "-fpic"&lt;BR /&gt;&amp;gt;=&amp;gt; can I put some linker flag in my sl makefile that makes it link well?&lt;BR /&gt;&lt;BR /&gt;This is a compile option, not link.&lt;BR /&gt;If you were using HP's compiler you could just export CCOPTS="+z" and then do the make.&lt;BR /&gt;&lt;BR /&gt;I don't know if gcc has something similar?&lt;BR /&gt;But well designed makefiles allow you to add options on the command lines or have centralized make include files where you can change this all in one place.</description>
      <pubDate>Sun, 15 Jun 2008 14:56:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-shared-object/m-p/5113415#M446432</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-15T14:56:44Z</dc:date>
    </item>
  </channel>
</rss>

