Re: HOWTO - Creating a static lib from objects and other static libs?

2008-03-18 Thread Vamsi Krishna
This is not a bug. Just extract all your lib*.a library files find . -name "*.a" -exec ar x \{\} \; -print ar rc libnew.a *.o HTH, Vamsi Kundeti. On Tue, Mar 18, 2008 at 6:05 PM, muni2773 <[EMAIL PROTECTED]> wrote: > > Folks I am trying to embed a static lib in a new lib that I am creating wit

Re: [Bug ld/2143] New: Unresolvable reference by DSO to hidden symbol despite --allow-shlib-undefined

2006-01-12 Thread vamsi krishna
Hello, Dont use 'ld' directly to create the shared libraries. Use gcc --shared. I had the same problem earlier and this seems to be the workaround. <--> $ gcc -Wall -W -fPIC -c -o oldlib.o oldlib.c $ gcc  --shared -o liboldlib.so oldlib.o <--

Is this a ld bug?

2005-09-02 Thread vamsi krishna
Hello All, Recently we have moved all libraries to be in fPIC mode (recompiled all the binaries with -fPIC option), and we have a static linking happening but ld fails with the following message. hidden symbol `__dso_handle' in /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/crtbegin.o is referenced b