From owner-freebsd-ports@FreeBSD.ORG Sat Dec 30 01:53:05 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DCC2216A407 for ; Sat, 30 Dec 2006 01:53:05 +0000 (UTC) (envelope-from shaun@FreeBSD.org) Received: from dione.picobyte.net (81-86-230-94.dsl.pipex.com [81.86.230.94]) by mx1.freebsd.org (Postfix) with SMTP id 67B4A13C44B for ; Sat, 30 Dec 2006 01:53:04 +0000 (UTC) (envelope-from shaun@FreeBSD.org) Received: from charon.picobyte.net (charon.picobyte.net [IPv6:2001:4bd0:201e::fe03]) by dione.picobyte.net (Postfix) with ESMTP; Sat, 30 Dec 2006 01:53:02 +0000 (GMT) Date: Sat, 30 Dec 2006 01:53:02 +0000 From: Shaun Amott To: Aaron Dalton Message-ID: <20061230015302.GB1611@charon.picobyte.net> References: <4595B371.7020405@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="98e8jtXdkpgskNou" Content-Disposition: inline In-Reply-To: <4595B371.7020405@FreeBSD.org> User-Agent: Mutt/1.5.11 (FreeBSD i386) Cc: FreeBSD Ports Subject: Re: LDFLAGS not taking 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: Sat, 30 Dec 2006 01:53:05 -0000 --98e8jtXdkpgskNou Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 29, 2006 at 05:31:45PM -0700, Aaron Dalton wrote: >=20 > I am trying to construct a port but cannot seem to get LDFLAGS to take! > *grumbles* The software uses GMAKE and has the following at the top of > it's Makefile: >=20 > BINDIR=3D/usr/local/bin > VERSION=3D$(shell cat VERSION) > RELEASE=3D$(shell sed -n 's/^Release: *\([0-9]*\)/\1/p' mkhexgrid.spec) > DISTDIR=3Dmkhexgrid-$(VERSION) > RPMDIR=3D/home/uckelman/rpmbuild > CC=3Dg++ > CPPFLAGS=3D-c -g -O2 -W -Wall -DVERSION=3D'"$(VERSION)"' -I/usr/local/inc= lude > LDFLAGS=3D-L/usr/local/lib -lm -lstdc++ -lgd >=20 LDFLAGS here overrides anything from the port's Makefile. Use something like: post-patch: @${REINPLACE_CMD} -e 's/^LDFLAGS=3D/LDFLAGS+=3D/' ${WRKSRC}/Makefile Is LDFLAGS actually referenced elsewhere in the Makefile / other Makefiles? --=20 Shaun Amott // PGP: 0x6B387A9A "A foolish consistency is the hobgoblin of little minds." - Ralph Waldo Emerson --98e8jtXdkpgskNou Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFlcZ+kmhdCGs4epoRAvmRAJ0WU5DxtLiZtVtucal8l30rsg7tNgCeNRkq bOfKer6ej7ha1iK/DKamuT8= =ovEa -----END PGP SIGNATURE----- --98e8jtXdkpgskNou--