|
From: | Jason Curl |
Subject: | Re: windres on mingw32 and cygwin |
Date: | Sat, 13 Dec 2008 20:24:11 +0100 |
User-agent: | Thunderbird 2.0.0.18 (Windows/20081105) |
Alon Bar-Lev wrote:
On 12/13/08, Jason Curl <address@hidden> wrote:.rc.lo: $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) $< -o $@ libwin_la_LDFLAGS = -no-undefined -version-info @WINLIB_VERSION_INFO@ @SHLIB_VERSION_ARG@You can look at OpenSC implementation it works both for libtool-1.5 and libtool-2. Maybe I am doing something wrong... But at least it works... :) I will be happy to know if there is a better way. I have the followings: RCCOMPILE = $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RCCOMPILE) .rc.lo: $(LTRCCOMPILE) -i "$<" -o "$@" .rc.o: $(RCCOMPILE) -i "$<" -o "$@" Look at: http://www.opensc-project.org/svn/opensc/trunk/configure.ac http://www.opensc-project.org/svn/opensc/trunk/win32/ltrc.inc http://www.opensc-project.org/svn/opensc/trunk/src/libopensc/Makefile.am Alon.
Thanks for the tip Alon. It looks like in my project the .rc.o rule isn't being executed. I can see my changes are being pulled in as the output has changed slightly. I'm still getting the following error.
/bin/sh ../../libtool --mode=compile --tag=RC windres -DHAVE_CONFIG_H -I. -i "rsrc.rc" -o "rsrc.lo"
libtool: compile: windres -DHAVE_CONFIG_H -I. -i rsrc.rc -o .libs/rsrc.o libtool: compile: windres -DHAVE_CONFIG_H -I. -i rsrc.rc >/dev/null 2>&1/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -no-undefined -version-info 1:0:0 -Wl,--add-stdcall-alias -o libwin.la -rpath /usr/local/lib version.lo libmain.lo rsrc.lo libtool: link: gcc -shared .libs/version.o .libs/libmain.o .libs/rsrc.o -Wl,--add-stdcall-alias -o .libs/libwin-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libwin.dll.a
Creating library file: .libs/libwin.dll.a libtool: link: ar cru .libs/libwin.a version.o libmain.o rsrc.o ar: rsrc.o: No such file or directory make[3]: *** [libwin.la] Error 1 make[3]: Leaving directory `/home/jcurl/winlib/code/libwin/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/jcurl/winlib/code/libwin/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jcurl/winlib/code/libwin' make: *** [all-recursive] Error 1
[Prev in Thread] | Current Thread | [Next in Thread] |