28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
$NetBSD: patch-ah,v 1.3 2012/10/11 18:42:19 spz Exp $
|
|
|
|
the c-ares dependencies are being difficult, manipulate it into working
|
|
|
|
use a variable for the path to net-snmp-config, for cases with nonstandard
|
|
locations
|
|
|
|
--- xymonnet/Makefile.orig 2012-07-13 16:50:38.000000000 +0000
|
|
+++ xymonnet/Makefile
|
|
@@ -66,6 +66,8 @@ c-ares/configure: c-ares-$(ARESVER).tar.
|
|
mv c-ares-$(ARESVER) c-ares
|
|
# Must touch "configure", or it will trigger a rebuild because it is older than the tar.gz file.
|
|
touch c-ares/configure
|
|
+ mkdir c-ares/.libs
|
|
+ touch c-ares/.libs/libcares.la
|
|
|
|
beastat: $(BEASTATOBJS) $(XYMONCOMMLIB) $(XYMONTIMELIB)
|
|
$(CC) $(CFLAGS) -o $@ $(RPATHOPT) $(BEASTATOBJS) $(XYMONCOMMLIBS) $(XYMONTIMELIBS) $(PCRELIBS)
|
|
@@ -82,7 +84,7 @@ xymon-snmpcollect: xymon-snmpcollect.o $
|
|
$(CC) $(LDFLAGS) -o $@ xymon-snmpcollect.o `net-snmp-config --libs` ../lib/libxymon.a $(XYMONCOMMLIBS) $(XYMONTIMELIBS)
|
|
|
|
xymon-snmpcollect.o: xymon-snmpcollect.c
|
|
- $(CC) $(CFLAGS) -I. `net-snmp-config --cflags` -c -o $@ xymon-snmpcollect.c
|
|
+ $(CC) $(CFLAGS) -I. `${SNMPCONFIG} --cflags` -c -o $@ xymon-snmpcollect.c
|
|
|
|
################################################
|
|
# Default compilation rules
|