> From: Earnie Boyd <
earnie@...>
> Subject: Re: [Mingw-users] How to create a relocatable dll with mingw
> To: "MinGW Users List" <
mingw-users@...>
> Date: Friday, April 20, 2012, 5:16 AM
> On Thu, Apr 19, 2012 at 2:32 PM,
> Srinivas Cherukumilli <
vasu_c@...>
> wrote:
> >
> >
> > --- On Thu, 4/19/12, Earnie Boyd <
earnie@...>
> wrote:
> >
> >> From: Earnie Boyd <
earnie@...>
> >> Subject: Re: [Mingw-users] How to create a
> relocatable dll with mingw
> >> To: "MinGW Users List" <
mingw-users@...>
> >> Date: Thursday, April 19, 2012, 11:00 AM
> >> Do not top post.
> >>
> >> On Thu, Apr 19, 2012 at 1:45 PM, Srinivas
> Cherukumilli
> >> <
vasu_c@...>
> >> wrote:
> >> >
> >> > Thanks for the response Earnie,
> >> >
> >> > But, unfortunatley it does not work.
> >> >
> >> > gcc complains about the missing '.a'
> >> > $ gcc -shared -o test1.dll test1.o
> --out-implib
> >> libtest1.dll.a
> >> > gcc.exe: libtest1.dll.a: No such file or
> directory
> >> >
> >>
> >> Sorry it should be -Wl,--out-implib,libtest1.dll.a
> since it
> >> is a linker option.
> >
> > Thanks again Earnie.
> > Sorry about top posting. Not used to sending mails to
> forums.
> > I still have issues with using the -Wl,relocatable and
> -shared options together.
> >
> > So, for the two commands you suggested:
> > (1) gcc -shared -o bar.dll bar.o
> -Wl,--out-implib,libbar.dll.a
> > (2) gcc -Wl,-relocatable -shared -o bar.dll bar.o
> -Wl,--out-implib,libbar.dll.a
> >
> > Step (1) works. Get linker errors for step (2). I
> hope I got all the options right in step (2).
> >
>
> Oh, sorry for the confusion. (///) --relocatable isn't
> usable with
> -shared. You can use --embedded-relocs with -shared
> though.
>