[Nut-upsdev] windows_port NUT branch

Frédéric Bohé fredericbohe at eaton.com
Tue Dec 21 09:00:49 UTC 2010


On lun., 2010-12-20 at 18:32 +0300, Paul Fertser wrote:
> On Mon, Dec 20, 2010 at 05:53:29PM +0300, Paul Fertser wrote:
> > and everything seems to work (i've to admit nut.exe didn't get built
> > for whatever obscure autoconf reason while halt.exe compiled all
> > right).
> 
> From: Paul Fertser <fercerpav at gmail.com>
> Date: Mon, 20 Dec 2010 18:28:34 +0300
> Subject: [PATCH] (Semi-)properly specify dependencies for nut.exe
> 
> EXTRA_nut_DEPENDENCIES would be even better alas Debian testing's
> automake is too old.
> ---
>  scripts/Windows/Makefile.am |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/scripts/Windows/Makefile.am b/scripts/Windows/Makefile.am
> index b2d70f1..a1e4b81 100644
> --- a/scripts/Windows/Makefile.am
> +++ b/scripts/Windows/Makefile.am
> @@ -20,9 +20,9 @@ winevent.dll: winevent.o
>  
>  bin_PROGRAMS = nut halt
>  
> -nut$(EXEEXT): winevent.dll
>  nut_SOURCES = wininit.c
>  nut_LDADD = ../../common/libcommon.la
> +nut_DEPENDENCIES = winevent.dll $(nut_LDADD)
>  
>  halt_SOURCES = halt.c
>  
> -- 
> 1.5.6.5
> 

In fact it seems that we do not need winevent.dll at all. I thought an
external DLL was mandatory for event log resources, but setting up
nut.exe linked against winevent.o as the EventMessageFile in the
registry base is working. So I have removed winevent.dll.




--------------------------------------------------------------------------



More information about the Nut-upsdev mailing list