[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windres on mingw32 and cygwin

From: Jason Curl
Subject: Re: windres on mingw32 and cygwin
Date: Sat, 13 Dec 2008 20:24:11 +0100
User-agent: Thunderbird (Windows/20081105)

Alon Bar-Lev wrote:

On 12/13/08, Jason Curl <address@hidden> wrote:
  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile
$(RC) $(RCFLAGS) $< -o $@

 libwin_la_LDFLAGS = -no-undefined -version-info @WINLIB_VERSION_INFO@

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:
LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RCCOMPILE)

        $(LTRCCOMPILE) -i "$<" -o "$@"

        $(RCCOMPILE) -i "$<" -o "$@"

Look at:


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 -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]: *** [] 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]