Date: Tue, 24 Jul 2012 11:37:56 +0100 (BST) From: William Waites <wwaites@tardis.ed.ac.uk> To: FreeBSD-gnats-submit@FreeBSD.org Cc: jhay@FreeBSD.org Subject: ports/170107: net/olsrd fails to build with -DWITH_MULTI_IF Message-ID: <20120724103756.A5B315E6F@gallows.inf.ed.ac.uk> Resent-Message-ID: <201207241040.q6OAeAV6002156@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 170107 >Category: ports >Synopsis: net/olsrd fails to build with -DWITH_MULTI_IF >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 24 10:40:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: William Waites >Release: FreeBSD 8.2-RELEASE amd64 >Organization: University of Edinburgh >Environment: System: FreeBSD gallows.inf.ed.ac.uk 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: net/olsrd fails to build with -DWITH_MULTI_IF because the appropriate CFLAGS and LDFLAGS for finding the libnet library do not make it down through the build process. >How-To-Repeat: cd /usr/ports/net/olsrd && make -DWITH_MULTI_IF >Fix: This might not be the best ports-idiomatic way to solve the problem, but it does work. diff -ruN net/olsrd.orig/Makefile net/olsrd/Makefile --- net/olsrd.orig/Makefile 2012-07-24 11:33:34.000000000 +0100 +++ net/olsrd/Makefile 2012-07-24 11:32:46.000000000 +0100 @@ -34,6 +34,8 @@ .if defined(WITH_MULTI_IF) MAKE_ARGS+= LIBNET=1 +CFLAGS+= -I${PREFIX}/include/libnet11 +LDFLAGS+= -L${PREFIX}/lib/libnet11 .endif .if defined(PREFIX) MAKE_ARGS+= PREFIX=${PREFIX} @@ -45,6 +47,8 @@ CFLAGS+= -fPIC .endif +MAKE_ARGS+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" + .if !defined(WITH_MULTI_IF) pre-everything:: @${ECHO_MSG} "" -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120724103756.A5B315E6F>