From owner-freebsd-ports@FreeBSD.ORG Wed Jun 1 13:57:31 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 019CE1065670 for ; Wed, 1 Jun 2011 13:57:31 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 511CA8FC1B for ; Wed, 1 Jun 2011 13:57:29 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA06276; Wed, 01 Jun 2011 16:57:27 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4DE64546.7070604@FreeBSD.org> Date: Wed, 01 Jun 2011 16:57:26 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110504 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Christoph Moench-Tegeder References: <4DE5D8C9.3020506@icyb.net.ua> <4DE6244E.1040301@FreeBSD.org> <20110601114442.GB2223@reindeer.exwg.net> <4DE6392D.5000106@gmx.de> <20110601131956.GC2223@reindeer.exwg.net> In-Reply-To: <20110601131956.GC2223@reindeer.exwg.net> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-ports@FreeBSD.org Subject: Re: lang/guile build fails for me X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2011 13:57:31 -0000 on 01/06/2011 16:19 Christoph Moench-Tegeder said the following: > Ah, yes, LDFLAGS. The port's Makefile already has > LDFLAGS="-L${LOCALBASE}/lib" in $CONFIGURE_ENV, and as guile's configure BTW, I think that CONFIGURE_ENV in the port's Makefile better be set with +=, for safety. > is a standard autoconf configure, $LDFLAGS should be picked up (the > output of "./configure --help" supports this), but... well, it isn't. Looks like LDFLAGS are lost from the environment before configure is run: ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value=' -rpath=/usr/lib:/usr/local/lib' And given the USE_NCURSES workaround posted in this thread, that takes to Mk/bsd.ncurses.mk where we have: ... NCURSES_LDFLAGS+= -rpath=${NCURSESRPATH} .if defined(LDFLAGS) LDFLAGS+=${NCURSES_LDFLAGS} .else LDFLAGS=${NCURSES_LDFLAGS} .endif CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" ... I think that the above line overrides whatever is set in the port's Makefile. -- Andriy Gapon