From:
[email protected]
This is a multi-part MIME message sent by reportbug.
Package: nut
Version: 1.4.3-1
Severity: minor
Tags: patch
there is no simple way to build packeage with additional options for
linking executables.
I've attached patch for this.
diff -ru nut-1.4.3/clients/Makefile.in nut-1.4.3.my/clients/Makefile.in
--- nut-1.4.3/clients/Makefile.in 2003-11-28 00:35:28.000000000 +0100
+++ nut-1.4.3.my/clients/Makefile.in 2004-08-13 09:25:18.000000000 +0200
@@ -20,6 +20,7 @@
PROGS = upsc upslog upsrw upscmd
SPROGS = upsmon upssched
CGIPROGS = upsstats.cgi upsimage.cgi upsset.cgi
+LDFLAGS = @LDFLAGS@
LIBDEP = @LIBOBJ@
LIBOBJ = $(LIBDEP) @NETLIBS@
STRLCPY = @STRLCPY@
@@ -68,7 +69,7 @@
# other stuff
upssched: upssched.c ../common/parseconf.o $(LIBDEP) $(STRLCPY)
- $(CC) $(CFLAGS) -o upssched upssched.c ../common/parseconf.o $(LIBOBJ) $(STRLCPY)
+ $(CC) $(CFLAGS) -o upssched upssched.c ../common/parseconf.o $(LIBOBJ) $(STRLCPY) $(LDFLAGS)
cgilib.o: cgilib.c
$(CC) $(CFLAGS) -c cgilib.c
diff -ru nut-1.4.3/drivers/Makefile.drvbuild nut-1.4.3.my/drivers/Makefile.drvbuild
--- nut-1.4.3/drivers/Makefile.drvbuild 2004-07-29 08:36:58.000000000 +0200
+++ nut-1.4.3.my/drivers/Makefile.drvbuild 2004-08-13 09:39:48.000000000 +0200
@@ -4,60 +4,60 @@
# to this file will be erased the nex