Re: Making .lib import libraries with libtool
On Sat, 2009-02-21 at 09:45 +0100, Ralf Wildenhues wrote: Hello, * LRN wrote on Sat, Feb 21, 2009 at 07:53:24AM CET: I have a project that uses autoconf/automake/libtool, and it produces shared libraries (on Windows that would be .dll) and static libraries (.a). Which modifications are necessary for it to start outputing .lib libraries (the ones that could be linked with link.exe) along with .dll's? I can hack configure script and add calls to lib.exe, but that doesn't seem right, and i would rather try doing that in configure.ac. Work for MSVC/LIB support is currently done in the pr-msvc-support branch. You can try it out, we're always happy about feedback, but you do get to keep the pieces if things break. Cheers, Ralf I've found that, many times, I often need to add -no-undefined to LDFLAGS, as well, or else libtool only generates static libs. -- Coleman Kane ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: Making .lib import libraries with libtool
Hello, * LRN wrote on Sat, Feb 21, 2009 at 07:53:24AM CET: I have a project that uses autoconf/automake/libtool, and it produces shared libraries (on Windows that would be .dll) and static libraries (.a). Which modifications are necessary for it to start outputing .lib libraries (the ones that could be linked with link.exe) along with .dll's? I can hack configure script and add calls to lib.exe, but that doesn't seem right, and i would rather try doing that in configure.ac. Work for MSVC/LIB support is currently done in the pr-msvc-support branch. You can try it out, we're always happy about feedback, but you do get to keep the pieces if things break. Cheers, Ralf ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: Making .lib import libraries with libtool
LRN wrote: I have a project that uses autoconf/automake/libtool, and it produces shared libraries (on Windows that would be .dll) and static libraries (.a). Which modifications are necessary for it to start outputing .lib libraries (the ones that could be linked with link.exe) along with .dll's? I can hack configure script and add calls to lib.exe, but that doesn't seem right, and i would rather try doing that in configure.ac. You didn't specify compiler. If it is GCC(mingwXX target) compiler produce import libraries with suffix .dll.a. In most cases just changing suffix work. Exception is both direction (.lib-.dll.a) is for exported variables. In general even MSVC didn't produce compatible import libraries. Library created by compiler version X may not work for version Y. I'm not informed that this issue is resolved. Def-files are more portable and some projects prefer this way. Roumen ___ http://lists.gnu.org/mailman/listinfo/libtool
Making .lib import libraries with libtool
I have a project that uses autoconf/automake/libtool, and it produces shared libraries (on Windows that would be .dll) and static libraries (.a). Which modifications are necessary for it to start outputing .lib libraries (the ones that could be linked with link.exe) along with .dll's? I can hack configure script and add calls to lib.exe, but that doesn't seem right, and i would rather try doing that in configure.ac. ___ http://lists.gnu.org/mailman/listinfo/libtool