From ff02ce48311f64b01febd391c5d77c33ecf1a958 Mon Sep 17 00:00:00 2001 From: Jens Muecke Date: Fri, 3 Aug 2007 03:08:18 +0000 Subject: [PATCH] fix segfault and set right dependency SVN-Revision: 8326 --- net/olsrd/Makefile | 4 ++-- net/olsrd/patches/110-cflags.patch | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 net/olsrd/patches/110-cflags.patch diff --git a/net/olsrd/Makefile b/net/olsrd/Makefile index a64bfffb3b..3c7581b71e 100644 --- a/net/olsrd/Makefile +++ b/net/olsrd/Makefile @@ -43,14 +43,14 @@ endef define Package/olsrd-mod-bmf $(call Package/olsrd) - DEPENDS:=olsrd libpthread kmod-tun + DEPENDS:=olsrd +libpthread +kmod-tun TITLE:=Basic multicast forwarding plugin MENU:=0 endef define Package/olsrd-mod-dyn-gw $(call Package/olsrd) - DEPENDS:=olsrd + DEPENDS:=olsrd +libpthread TITLE:=Dynamic internet gateway plugin MENU:=0 endef diff --git a/net/olsrd/patches/110-cflags.patch b/net/olsrd/patches/110-cflags.patch new file mode 100644 index 0000000000..b403f67b43 --- /dev/null +++ b/net/olsrd/patches/110-cflags.patch @@ -0,0 +1,22 @@ +Index: olsrd-0.5.2/Makefile.inc +=================================================================== +--- olsrd-0.5.2.orig/Makefile.inc 2007-08-03 04:25:53.320043315 +0200 ++++ olsrd-0.5.2/Makefile.inc 2007-08-03 04:25:57.816299546 +0200 +@@ -62,7 +62,7 @@ LDFLAGS += -Wl,-export-dynamic + endif + + # options to save space on small systems +-DEFINES += -DSUPPORT_OLD_PLUGIN_VERSIONS=1 ++CFLAGS += -DSUPPORT_OLD_PLUGIN_VERSIONS=1 + + # search sources and headers in current dir and in src/ + SRCS = $(wildcard src/*.c) +@@ -102,7 +102,7 @@ endif + CFLAGS += -MD + + # we always need the includes and defines +-CFLAGS += $(INCLUDES) $(DEFINES) ++CFLAGS += $(INCLUDES) + + TAGFILE ?= src/TAGS + -- 2.30.2