[Olsr-dev] Quagga plugin CPPFLAGS ignored
Acinonyx
(spam-protected)
Sat Sep 29 02:17:17 CEST 2007
Greetings,
CPPFLAGS are added before topdir Makefile.inc is included and they are lost.
The result is that quagga plugin always tries tcp connection to zebra
regardless of the definition USE_UNIX_DOMAIN_SOCKET.
A patch follows that fixes this issue:
diff -Nur olsrd-0.5.3/lib/quagga/Makefile
olsrd-0.5.3-patched/lib/quagga/Makefile
--- olsrd-0.5.3/lib/quagga/Makefile 2007-07-26 20:34:54.000000000 +0300
+++ olsrd-0.5.3-patched/lib/quagga/Makefile 2007-09-24 23:37:52.000000000
0300
@@ -41,6 +41,9 @@
PLUGIN_NAME = olsrd_quagga
PLUGIN_VER = 0.2.2
+TOPDIR = ../..
+include $(TOPDIR)/Makefile.inc
+
#CPPFLAGS += -DMY_DEBUG
CFLAGS += -g
CPPFLAGS += -DUSE_UNIX_DOMAIN_SOCKET
@@ -49,9 +52,6 @@
#probably break things!
#CPPFLAGS += -DZEBRA_HEADER_MARKER=255
-TOPDIR = ../..
-include $(TOPDIR)/Makefile.inc
-
ifeq ($(OS),win32)
default_target install clean:
@echo "**** Quagga not supportet on Windows (so it would be pointless
to build the Quagga Plugin"
More information about the Olsr-dev
mailing list