]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
unbound 1.6.1: Linking against libevent2
authorMatthias Fischer <matthias.fischer@ipfire.org>
Fri, 21 Apr 2017 17:00:21 +0000 (19:00 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 24 Apr 2017 09:18:42 +0000 (10:18 +0100)
Hi,

this was triggered by unbound-users@unbound.net - it seems that the
'configure'-option '--with-libevent-support' is not enough:

***SNIP***
...
When building unbound with --with-libevent support, the make
install phase should also call make unbound-event-install or else
unbound-event.h does not get installed and the header file for
using the unbound event functionality is not available.
...
This install is triggered by the option --enable-event-api. Just
enabling --with-libevent does not trigger the install by itself.

Best regards,
Wouter
...
***SNAP***

I built 'unbound' this way - its running without any problems so far.

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/unbound
lfs/unbound

index a94ea25643aabac5b0ab4eae8583333073e627ad..824567e1fa9850394e24dc0d17a6885d2eef4e5b 100644 (file)
@@ -6,6 +6,7 @@ etc/unbound/icannbundle.pem
 etc/unbound/local.d
 etc/unbound/root.hints
 etc/unbound/unbound.conf
+#usr/include/unbound-event.h
 #usr/include/unbound.h
 #usr/lib/libunbound.la
 #usr/lib/libunbound.so
index f361f24f0202bcb9547f38c484e2582afe49653f..d78bd95095f3d5fde0bbfa578f6000bc8f0a6848 100644 (file)
@@ -78,7 +78,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                        --with-pidfile=/var/run/unbound.pid \
                        --with-rootkey-file=/var/lib/unbound/root.key \
                        --disable-static \
-                       --with-libevent
+                       --with-libevent \
+                       --enable-event-api
+
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install