Date: Sat, 30 Dec 2006 01:53:02 +0000 From: Shaun Amott <shaun@FreeBSD.org> To: Aaron Dalton <aaron@FreeBSD.org> Cc: FreeBSD Ports <ports@freebsd.org> Subject: Re: LDFLAGS not taking Message-ID: <20061230015302.GB1611@charon.picobyte.net> In-Reply-To: <4595B371.7020405@FreeBSD.org> References: <4595B371.7020405@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061230015302.GB1611>