Re: About library objects name in Cygwin/MinGW
Motofumi Oka <[email protected]> Fri, 16 Sep 2011 22:34:17 +0900
| Newsgroups | gmane.comp.video.xvid.devel |
|---|---|
| Message-ID | <CACp0aOdXKq5irLhg-n5r3Q=x-JhCUeCPf-CR+ckDOZ40o8XNBQ@mail.gmail.com> |
I want to attach "lib" to STATIC_LIB also in mingw. It may not be required as Reini said. However, it already serves as custom. I don't know except xvid what does not attach =94lib"prefix to static library. When a cross-platform project uses GCC, do they set up LDFLAG in consideration of a library name being different only in mingw? Probably, they are unwilling to do it. Therefore, if there is no reason which must not attach "lib", I will want you to attach it. Regards, Motofumi 2011/9/16 Michael Militzer <[email protected]> > Hm, what would be a proper solution then? Something like this? > > http://pastebin.com/bva9i8CH > > Regards, > Michael > > > Quoting Reini Urban <[email protected]>: > > > 2011/9/15 Motofumi Oka <[email protected]>: > >> Currently, library name of xvidcore in cygwin/mingw is defined by > >> configure.in as follows. > >> > >> [[cC]][[yY]][[gG]][[wW]][[iI]][[nN]]*|mingw32*|mks*) > >> AC_MSG_RESULT([ok]) > >> STATIC_LIB=3D"xvidcore.\$(STATIC_EXTENSION)" > >> SHARED_LIB=3D"xvidcore.\$(SHARED_EXTENSION)" > >> > >> For this reason, when using xvidcore as an external library of other > >> projects(ffmpeg, mencoder, etc...), I always have to rename/copy/simli= nk > >> xvidcore(.dll).a to libxvidcore(.dll).a. > >> > >> So, what is the reason the library name differs from the case of other > >> environment? > >> I know nothing about mks. > >> however, I think that it is appropriate to attach "lib" to a library > name > >> when target_os=3Dcygwin/mingw. > > > > On cygwin the import lib should be named libxvidcore.dll.a, > > the shared lib cygxvidcore.dll and the static lib xvidcore.a > > On mingw the shared libxvidcore.dll > > > > The lib prefix is only needed for the import lib and this pulls in the > > right dll (cygwin or mingw) > > which is the preferred naming method. > > -- > > Reini Urban > > _______________________________________________ > > Xvid-devel mailing list > > [email protected] > > http://list.xvid.org/mailman/listinfo/xvid-devel > > > > > > > > _______________________________________________ > Xvid-devel mailing list > [email protected] > http://list.xvid.org/mailman/listinfo/xvid-devel >