Date: Fri, 29 Dec 2006 17:31:45 -0700 From: Aaron Dalton <aaron@FreeBSD.org> To: FreeBSD Ports <ports@freebsd.org> Subject: LDFLAGS not taking Message-ID: <4595B371.7020405@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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: BINDIR=/usr/local/bin VERSION=$(shell cat VERSION) RELEASE=$(shell sed -n 's/^Release: *\([0-9]*\)/\1/p' mkhexgrid.spec) DISTDIR=mkhexgrid-$(VERSION) RPMDIR=/home/uckelman/rpmbuild CC=g++ CPPFLAGS=-c -g -O2 -W -Wall -DVERSION='"$(VERSION)"' -I/usr/local/include LDFLAGS=-L/usr/local/lib -lm -lstdc++ -lgd In the port's Makefile I place: USE_GMAKE= yes CFLAGS= -I${LOCALBASE}/include LDFLAGS= -L${LOCALBASE}/lib BINDIR= ${PREFIX}/bin The compilation phase works fine, with the -I tag inserted where it belongs. No matter what I do, however, I cannot get the -L to take! It simply does not appear on the command line when linking occurs. Is there a circumstance in which this would occur? Any work-around? Thanks for your time. - -- Aaron Dalton aaron@FreeBSD.org FreeBSD Ports Committer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFlbNwvlYKTYgR0qQRAnebAJwMTNyyUfyf/OuR7gySELFxd/Jz/QCfbeb6 gsyBYCp3dsRry4cUTkjsy3c= =BV0h -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4595B371.7020405>