| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| To: | pontus AT mathcore DOT com |
| Cc: | cygwin AT sourceware DOT cygnus DOT com |
| Subject: | Re: variation on the .dll, .lib, .a theme (help!) |
| Reply-To: | ttathome AT remus DOT dti DOT ne DOT jp |
| In-Reply-To: | Your message of "Wed, 9 Jun 1999 14:13:52 +0200 (CEST)" |
| <Pine DOT LNX DOT 4 DOT 05 DOT 9906091204290 DOT 30377-100000 AT atlas DOT mathcore DOT se> | |
| References: | <Pine DOT LNX DOT 4 DOT 05 DOT 9906091204290 DOT 30377-100000 AT atlas DOT mathcore DOT se> |
| X-Mailer: | Mew version 1.93 on Emacs 20.2 / Mule 3.0 (MOMIJINOGA) |
| Mime-Version: | 1.0 |
| Message-Id: | <19990609212357A.ttamura@icc.melco.co.jp> |
| Date: | Wed, 09 Jun 1999 21:23:57 +0900 (JST) |
| From: | Takayuki Tamura <ttamura AT icc DOT melco DOT co DOT jp> |
| X-Dispatcher: | imput version 980905(IM100) |
| Lines: | 36 |
Hi,
On Wed, 9 Jun 1999 14:13:52 +0200 (CEST)
Pontus Lidman <pontus AT mathcore DOT com> wrote:
> cp ml32i1m.lib ML.lib
> echo "EXPORTS" >ML.def
> nm --demangle --defined-only ML.lib | grep ' T ' | sed 's/.* T //' >>ML.def
> dlltool --dllname ML.lib --def ML.def --output-lib libML.a
^^^
This must be .dll which is associated with the .lib.
Doesn't this work?
$ cp SOMEWHERE/ml32i1m.dll ELSEWHERE/ml32i1m.lib .
$ echo "EXPORTS" >ml32i1m.def
$ nm --demangle --defined-only ml32i1m.lib | grep ' T ' | sed 's/.* T //' >>ml32i1m.def
$ dlltool --dllname ml32i1m.lib --def ml32i1m.def --output-lib libml32i1m.a
I put *.dll in the search path, and use the following in my makefile.
lib$(TARGET).a : $(TARGET).lib
@echo 'Generating $(TARGET).def'
@echo 'EXPORTS' > $(TARGET).def
@nm $< | sed -n 's/^.* T _//p' >> $(TARGET).def
@echo 'Generating lib$(TARGET).a'
@dlltool -d $(TARGET).def -D `bash -c "type -p $(TARGET).dll"` -l $@
@rm $(TARGET).def
Regards,
---------------
Takayuki TAMURA (ttathome AT remus DOT dti DOT ne DOT jp)
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |